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


Please Help Members By Posting Answers For Below Questions

What is java awt and swing?

604


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.

2215


Who created the swing?

493


What are the benefits of swing over awt?

584


Why do we use swing in java?

505






What is swing delegation event model in java?

549


Is swing thread-safe?

567


What are heavyweight components? What is lightweight component?

528


Why swings are used in java?

520


Why swing components are called lightweight components?

502


Explain the difference between swing and jsf.

610


How to perform action on button in java swing?

500


What is the function of internal frame in swing?

609


What is difference between swing and awt?

480


What is swing gui in java?

561