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

Examples of edu.gmu.seor.prognos.simulation.integration.gui.FileChooserDialog


   * @return the java button
   */
  private JButton createSaveWorldButton() {
    acSaveWorld = new AbstractAction("Save World") {
      public void actionPerformed(ActionEvent e) {
        FileChooserDialog ufd = new FileChooserDialog();
        String strfile =  ufd.saveFile(new Frame(), "Open...", ".\\", "*.tdb");
       
        int i = strfile.indexOf(".tdb");
        if(i < 1)
          return;
        strfile = strfile.substring(0, i);
View Full Code Here


   * @return the java button
   */
  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

Related Classes of edu.gmu.seor.prognos.simulation.integration.gui.FileChooserDialog

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.