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 is java panel swing?
What is the difference between swing and awt in java?
What's java swing?
What is sling swing?
Why should any swing call back implementation execute quickly?
Why should the implementation of any swing callback (like a listener) execute quickly?
What is jlabel java swing?
What is swing used for?
Is java swing still used?
What are swing components in java?
Why are swing components called lightweight components?
What is the base class for all swing components?
Explain the difference between swing and jsf.
What are the advantages of swing?
What are the swing components in java?