/** * Starts the GUI. * * @param args ignored */ public static void main(String[] args) { Project.initialize(); BaseFrame frame = createFrame(); frame.setDefaultCloseOperation(BaseFrame.EXIT_ON_CLOSE); frame.setLocationRelativeTo(null); frame.setVisible(true); }
/** * Creates a new frame with the GUI. * * @return the frame */ public static BaseFrame createFrame() { BaseFrame frame; frame = new BaseFrame("Scripted PDF Overlay"); ScriptedPDFOverlayGUI panel = new ScriptedPDFOverlayGUI(); frame.getRootPane().setLayout(new BorderLayout()); frame.getRootPane().add(panel); frame.setSize(550, 200); return frame; }