Skip to content
Advertisement

How to clear a JFrame?

I’m still a noob to Swing classes and I wanted to clear the screen after the user activates a button.

JavaScript

I have used the following and it didn’t really do anything.

JavaScript

Advertisement

Answer

JavaScript

you should use it this way

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement