Package ui.dialogs

Examples of ui.dialogs.DlgNewProject


        return;
      }
    }

    // Show new project window
    DlgNewProject dlg = new DlgNewProject(this);
    dlg.setSize(new Dimension(452, 153));

    // If the user pressed the OK button
    if (dlg.getAnswer() == JOptionPane.OK_OPTION) {
      try {
        setCursor(Cursor.WAIT_CURSOR);

        // Create the project
        Project newProject = new Project(dlg.getProjectPath(), dlg.getMapFile());

        // Notify any registered listeners that the project has changed
        Broadcaster.NotifyProjectChanged(newProject);
      } catch (Exception e) {
        JOptionPane.showMessageDialog(this, "An error occured while creating the project", "Error", JOptionPane.ERROR_MESSAGE);
View Full Code Here

TOP

Related Classes of ui.dialogs.DlgNewProject

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.