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



I want to change the appearance of Frame in Runtime, what class can be used to do this?..

Answer / ankur pandya

LookAndFeel

Is This Answer Correct ?    1 Yes 1 No

I want to change the appearance of Frame in Runtime, what class can be used to do this?..

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

Post New Answer

More Swing Interview Questions

How do you swing an applet?

0 Answers  


How to align components in java swing?

0 Answers  


What are the different components that are used to show a container?

0 Answers  


Why swings are used in java?

0 Answers  


How is multi-threading gets implemented using swing?

0 Answers  


What is java panel swing?

0 Answers  


What is event in java swing?

0 Answers  


What is awt and swing in java?

0 Answers  


What is java swing gui?

0 Answers  


What is content pane in swing?

0 Answers  


Which package is needed for swing components?

0 Answers  


What is javax swing joptionpane?

0 Answers  


Categories