Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.Dimension;
- import java.awt.Toolkit;
- Toolkit toolkit = getToolkit();
- Dimension size = toolkit.getScreenSize();
- setLocation(size.width/2 - getWidth()/2,
- size.height/2 - getHeight()/2);
Add Comment
Please, Sign In to add comment