set jframe fullscreen 1

set jframe fullscreen


Here is what the above code is Doing:
1. We create a JFrame object and set its title to “My First GUI”.
2. We set the size of the frame to 400×400.
3. We set the default close operation to JFrame.EXIT_ON_CLOSE.
4. We set the frame to be visible.
5. We set the frame to be maximized.

Similar Posts