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
What do you mean by java swing?
Why should the implementation of any swing callback (like a listener) execute quickly?
What is the what is the difference between invokeandwait() and invokelater()? ?
What is an event in Swing?
Is swing part of core java?
What is the difference between applications and applets?
Why are swing components called lightweight?
What is import javax swing in java?
How does accessibility works in swings?
What is the relationship between clipping and repainting?
Which is better swing or awt?
Is javafx better than swing?
How to reload a jframe in java swing?
What is the role of java swing?
Which method is used for setting security in applets?