Package edu.gmu.seor.prognos.simulation.integration.gui

Examples of edu.gmu.seor.prognos.simulation.integration.gui.FileChooserDialog.loadFile()


  private JButton createLoadWorldButton() {
    acLoadWorld = new AbstractAction("Load World") {
      public void actionPerformed(ActionEvent e) { 
        FileChooserDialog ufd = new FileChooserDialog();
        try {
          loadWorld(ufd.loadFile(new Frame(), "Open...", ".\\", "*.tdb"));
          JOptionPane.showMessageDialog(null, "The file was loaded!");
        } catch (Exception exc) {
          exc.printStackTrace();
          JOptionPane.showMessageDialog(null, "Error loading file.");
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.