out.setLocationRelativeTo(JHack.main.getMainWindow());
    public static JFrame createBaseWindow(ActionListener al)    {        JFrame out = new JFrame();        out.getContentPane().setLayout(new BorderLayout());        JPanel buttons = new JPanel();        buttons.setLayout(new FlowLayout());        JButton apply = new JButton("Apply Changes");        apply.setActionCommand("apply");        apply.addActionListener(al);        buttons.add(apply);        JButton close = new JButton("Close");        close.setActionCommand("close");        close.addActionListener(al);        buttons.add(close);        out.getContentPane().add(buttons, BorderLayout.SOUTH);        return out;    }