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 |
What is swing used for?
How to align components in java swing?
Why swings are used in java?
What is content pane in swing?
What is the process of setting the layout manager?
Why should the implementation of any swing callback (like a listener) execute quickly?
How do you swing an applet?
What is layout in java swing?
What is JTable and what is its purpose?
What is java awt and swing?
Which method is used for setting security in applets?
What are the advantages of swing?