another way is :
adaptive your frame with screen resolution.
private Dimension dim;
private void resolutionAdapter() {
dim = Toolkit.getDefaultToolkit().getScreenSize();
screenWidth = (int) dim.getWidth() - 200;
screenHeight = (int) dim.getHeight() - 200;
}