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
What is the difference between swing and applet?
What is the difference between swing and awt in java?
What is swing api?
When we should go for codebase in applet?
What are swing components?
Write a program to paint the off-screen buffer in swings
What is the use of double buffering in swings?
Which window contains the swing controls?
What class is at the top of the AWT event hierarchy?
What is event in java swing?
How to perform action on button in java swing?
What is the purpose of action interface in swing?
Why swing components are called lightweight components?
am searching for the job based on java, swing, currently working small company. they are not giving any salary slip, offer letter. so if i try outside for MNC's they start with previous company details. what should i do..? please help me to get job and make my career.
Is javafx better than swing?