Forums Register Login

maximize JFrame when showing

+Pie Number of slices to send: Send
How do I show my JFrame in its maximized-size when I set it visisble? Also can I check the resolution of the system (eg 800x600 or 1024x768) in my program?
Many thanks.
+Pie Number of slices to send: Send
To get the screen size, use:
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize()
Bring out your dead! Or a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 929 times.
Similar Threads
Stretch the image size.
I got a problem about JFrame.
Problem re-opening a JFrame
can you resize a JTable from UI?
Maximize JFrame on run
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 07:35:15.