Forums Register Login

Screen Size

+Pie Number of slices to send: Send
Hi guys!

I need to get the screen size so I can position my JFrame relative to the screen size.

I've searched this forum and there seems to be no thread on this.

Thanks to all.

+Pie Number of slices to send: Send
You want java.awt.Toolkit.getDefaultToolkit().getScreenSize().
Alas, poor Yorick, he knew this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1076 times.
Similar Threads
How to set a screen size
how to set the size of of a JPanel according to the Screen Size
Using Other Classes in my Main?
full size of the screen(urgent)
Screen meshing into main screen
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 19:48:53.