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 the difference between swing and applet?

551


What is the difference between swing and awt in java?

547


What is swing api?

531


When we should go for codebase in applet?

621


What are swing components?

597






Write a program to paint the off-screen buffer in swings

564


What is the use of double buffering in swings?

560


Which window contains the swing controls?

533


What class is at the top of the AWT event hierarchy?

654


What is event in java swing?

517


How to perform action on button in java swing?

504


What is the purpose of action interface in swing?

562


Why swing components are called lightweight components?

510


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.

2221


Is javafx better than swing?

509