How to reload a jframe in java swing?



How to reload a jframe in java swing?..

Answer / Rachna Saxena

You can't directly 'reload' a JFrame, but you can create a new instance of the JFrame and call `setVisible(true)` on it. Alternatively, you can invalidate() and repaint() the existing JFrame to refresh its content.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Swing Interview Questions

What is swing used for?

1 Answers  


How to align components in java swing?

1 Answers  


Why swings are used in java?

1 Answers  


What is content pane in swing?

1 Answers  


What is the process of setting the layout manager?

1 Answers  


Why should the implementation of any swing callback (like a listener) execute quickly?

1 Answers  


How do you swing an applet?

1 Answers  


What is layout in java swing?

1 Answers  


What is JTable and what is its purpose?

4 Answers  


What is java awt and swing?

1 Answers  


Which method is used for setting security in applets?

1 Answers  


What are the advantages of swing?

1 Answers  


Categories