简体   繁体   中英

How to make a JFrame fit the full screen?

So, I was creating a JFrame object. It has a method to set the size of the frame.

What would be the parameters of that method to make the frame span my entire screen?

Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM