示例#1
0
文件: Main.java 项目: padillbt/Swap1
  /**
   * Program starts here.
   *
   * @param args
   */
  public static void main(String[] args) {
    path = new File("schedule_data.ser");
    config = new Config();

    // Code to open the config file.

    try {
      recallConfigFile();
      if (getSchedule() != (null)) {
        cal = new CalendarGUI(getSchedule());
        // config.setVisible(true);
        cal.setVisible(true);
      } else {
        config.setVisible(true);
      }
    } catch (Exception exception) {
      exception.printStackTrace();
    }
  }
示例#2
0
文件: Main.java 项目: padillbt/Swap1
 /** Changes visible of config. */
 public static void toggleConfig() {
   config.setVisible(!config.isVisible());
 }