I want to change the appearance of Frame in Runtime, what
class can be used to do this?
Answers were Sorted based on User's Feedback
Answer / 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 |
Can a class be it?s own event handler? Explain how to implement this?
Why does JComponent have add() and remove() methods but Component does not?
What are swing components?
Explain the difference between swing and jsf.
What is the function of lightweight components used in swing?
Why swing components are called lightweight components?
What are swing controls?
What is the relationship between clipping and repainting?
What is an event and what are the models available for event handling?
What is an event in Swing?
Is there any heavyweight component in swings?
What is swing framework in java?