Answer Posted / karthik
Yes ok
Example:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class xx extends JFrame
{
xx()
{
Container con=getContentPane();
//this Heavy weight component Button
con.add(new Button("hhhhhhhhhhhhhhhhh"));
setVisible(true);
setSize(200,300);
}
public static void main(String aa[])
{
new xx();
}
}
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
How to create image slideshow in java swing?
What is Java Swing?
What is an on stage swing?
What do you mean by java swing?
What is difference between swing and awt?
Why do we use swing in java?
Why should the implementation of any swing callback (like a listener) execute quickly?
What is jpanel in java swing with example?
What is event in java swing?
What is a swing day?
What is java swing package?
Explain the difference between jfc & wfc.
What is pane in swing?
What are the components of swing?
What is the function of lightweight components used in swing?