Skip to content

Instantly share code, notes, and snippets.

@JuanJo4
Created July 2, 2011 05:45
Show Gist options
  • Save JuanJo4/1059766 to your computer and use it in GitHub Desktop.
Save JuanJo4/1059766 to your computer and use it in GitHub Desktop.
Capturar las dimensiones del monitor
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