Center the Desktop on the screen

This commit is contained in:
xfarrow 2023-08-03 10:26:09 +02:00
parent 9cef4f2b8a
commit 04bc07266b

View File

@ -117,6 +117,7 @@ public class Desktop extends JFrame implements IDesktopFrame {
createJToolBar();
getContentPane().add(toolBar, BorderLayout.NORTH);
setSize(1280, 720);
setLocationRelativeTo(null);
addWindowListener(new WindowAdapter() {
@Override