Package com.cburch.logisim.gui.main

Examples of com.cburch.logisim.gui.main.Frame


                    JOptionPane.ERROR_MESSAGE);
            }
            return null;
        }

        Frame frame = proj.getFrame();
        if (frame == null) {
            frame = createFrame(baseProject, proj);
        }
        frame.setVisible(true);
        frame.toFront();
        frame.getCanvas().requestFocus();
        proj.getLogisimFile().getLoader().setParent(frame);
        return proj;
    }
View Full Code Here


        proj.setTool(oldTool);
        return ret;
    }

    public static void doQuit() {
        Frame top = Projects.getTopFrame();
        top.savePreferences();

        for (Project proj : new ArrayList<Project>(Projects.getOpenProjects())) {
            if (!proj.confirmClose(getFromLocale("confirmQuitTitle"))) {
                return;
            }
View Full Code Here

            this.isStartupScreen = isStartup;
        }

        @Override
        public void run() {
            Frame frame = createFrame(null, proj);
            frame.setVisible(true);
            frame.toFront();
            frame.getCanvas().requestFocus();
            loader.setParent(frame);
            if (isStartupScreen) {
                proj.setStartupScreen(true);
            }
View Full Code Here

        if (src == newi) {
            ProjectActions.doNew(proj);
        } else if (src == open) {
            ProjectActions.doOpen(proj == null ? null : proj.getFrame().getCanvas(), proj);
        } else if (src == close) {
            Frame frame = proj.getFrame();
            if (frame.confirmClose()) {
                frame.dispose();
                OptionsFrame f = proj.getOptionsFrame(false);
                if (f != null) {
                    f.dispose();
                }
View Full Code Here

TOP

Related Classes of com.cburch.logisim.gui.main.Frame

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.