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 |
Why do we use swing in java?
What are heavyweight components? What is lightweight component?
What is the process of setting the layout manager?
What is java swing used for?
What are the benefits of using Swing over AWT?
What is JTable and what is its purpose?
What is swing components in java?
What is double buffering ?
Why is model-view-controller architecture used in swing?
Is swing better than awt?
Can a class be it?s own event handler? Explain how to implement this?
What is the purpose of action interface in swing?