Tell me how to make JFrame located in the center, and not in the upper left corner, as in the screenshot:
final int h = 600; final int w = 600; QScreen screen = new QScreen(w, h, 24); JFrame f = new JFrame(); f.setResizable(true); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.setLocationRelativeTo(null); f.add(screen); f.setTitle("Example"); f.setSize(w, h); f.setVisible(true); 