/** * 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(); } }
/** Changes visible of config. */ public static void toggleConfig() { config.setVisible(!config.isVisible()); }