public void showMainWindow()
    {
        frame = new JFrame();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setMinimumSize(new Dimension(800, 600));
        frame.setPreferredSize(new Dimension(1000, 800));

        layout = new DesktopAppLayout();
        frame.getContentPane().setLayout(layout);

        frame.setVisible(true);

        JRootPane rootPane = frame.getRootPane();
        rootPane.getInputMap().put(KeyStroke.getKeyStroke("SPACE"), "pressed");
    }
public void showMainWindow ( ) { frame = new JFrame ( ) ; frame . setDefaultCloseOperation ( JFrame . EXIT_ON_CLOSE ) ; frame . setMinimumSize ( new Dimension ( 800 , 600 ) ) ; frame . setPreferredSize ( new Dimension ( 1000 , 800 ) ) ; layout = new DesktopAppLayout ( ) ; frame . getContentPane ( ) . setLayout ( layout ) ; frame . setVisible ( true ) ; JRootPane rootPane = frame . getRootPane ( ) ; rootPane . getInputMap ( ) . put ( KeyStroke . getKeyStroke ( "SPACE" ) , "pressed" ) ; }
{@inheritDoc}