I want to change the appearance of Frame in Runtime, what
class can be used to do this?
Answer Posted / pradyut
Graphics 2d g;
JFrame f;
g.dispose();
setPreferredSize(new
Dimension(128+r.nextInt(128),128+r.nextInt(128)));
f.pack();
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Explain how to render an html page using only swing.
What are swing controls?
What are the different components that are used to show a container?
How do you swing an applet?
What are swing components in java?
What is container in java swing?
Why does JComponent have add() and remove() methods but Component does not?
What is the relationship between clipping and repainting?
What are the components of swing in java?
What is layout in java swing?
What are the two key features of swing?
Which containers use a border Layout as their default layout in swing?
What are the advantages of the event-delegation model over the event-inheritance model?
What is java swing used for?
What are heavy weight components ?