Created
July 2, 2011 05:45
-
-
Save JuanJo4/1059766 to your computer and use it in GitHub Desktop.
Capturar las dimensiones del monitor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.swing.JFrame; | |
import java.awt.Dimension; | |
import java.awt.Toolkit; | |
final JFrame frame = new JFrame(); | |
Dimension fullscreen = Toolkit.getDefaultToolkit().getScreenSize(); | |
fullscreen.width -= 100; | |
fullscreen.height -= 200; | |
frame.setBounds(0,0,fullscreen.width,fullscreen.height); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment