Package jnode.main

Examples of jnode.main.MainHandler


   */
  public GUIConfigurator(String configFile) {
    this.configFile = configFile;
    if (MainHandler.getCurrentInstance() == null) {
      try {
        new MainHandler(configFile);
      } catch (Exception e) {
        e.printStackTrace();
        new MainHandler(fillDefaultConfig());
      }
    }
    initialize();
  }
View Full Code Here


        }
        try {
          OutputStream os = new FileOutputStream(configFile);
          props.store(os, "GUIConfigurator process");
          os.close();
          new MainHandler(configFile);
        } catch (IOException ig) {

        }
      }
    });
    Button defButton = new Button("По-умолчанию");
    defButton.addActionListener(new ActionListener() {

      @Override
      public void actionPerformed(ActionEvent e) {
        new MainHandler(fillDefaultConfig());
      }
    });

    configPanel.add(saveButton);
    configPanel.add(defButton);
View Full Code Here

TOP

Related Classes of jnode.main.MainHandler

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.