public static void main(String[] args) {
        Memory memory = null;
        try{
            memory = new Memory();
        //ceate and display the mainFrame form
            java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                Memory.mainFrame = new MainFrame();
                Memory.mainFrame.setVisible(true);
                }
            });
        }
        catch(Throwable e){
            System.out.println("\n"+e.getMessage());
        }
        finally{
            if(Memory.mainFrame != null){
                Memory.mainFrame.dispose();
            }
        }
    }