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
Why should any swing call back implementation execute quickly?
What is the process of setting the layout manager?
What is swing and its features in java?
What is swing package in java?
What is the base class for all swing components?
What is the function of abstractaction class?
What is actionlistener in java swing?
What are differences between swing and awt?
What is the use of swing in java?
What is import javax swing jframe?
What is the class in swing to change the appearance of the frame in runtime?
What are the advantages of java swing over angular?
What are controls and what are different types of controls in awt?
Is swing part of core java?
What are swing components?