I was wondering if there was a way that is better than using the Toolkit.getDefaultToolkit().getScreenSize().getHeight()/getWidth();
and then using that as the dimensions for the JFrame and then setting the JFrame to undecorated
? Would there be some sort of pre-built function in Java that takes control of the graphics card for a true fullscreen?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
You're after what's called "full-screen exclusive mode"
Have a look at Full-Screen Exclusive Mode for more details.
Understand though, it doesn't play well with Swing.
Under Mac OS X 10.7, you can access the full screen support it provides for applications using
com.apple.eawt.Application.requestToggleFullScreen(Window)
.Take a look at Fullscreen feature for Java Apps on OSX Lion for more details