fixed default close operations for windows
This commit is contained in:
@@ -87,7 +87,7 @@ public class DatePicker extends JFrame implements ActionListener {
|
||||
mListener.onDatePicked(mResultCode, new Date("\""+
|
||||
mCalendar.getYearChooser().getYear()+"-"+ (mCalendar.getMonthChooser().getMonth()+1) +"-"+ mCalendar.getDayChooser().getDay() +
|
||||
" "+ Integer.parseInt(mHours.getText())+":"+ Integer.parseInt(mMinutes.getText())+":"+ Integer.parseInt(mSeconds.getText())+"\""));
|
||||
this.setVisible(false);
|
||||
this.dispose();
|
||||
} catch (NumberFormatException e1) {
|
||||
e1.printStackTrace();
|
||||
mFailLabel.setVisible(true);
|
||||
|
||||
@@ -49,6 +49,7 @@ public class MainWindow extends JFrame implements ActionListener, ProgressListen
|
||||
public MainWindow() {
|
||||
|
||||
Thread.setDefaultUncaughtExceptionHandler(mExceptionReport);
|
||||
this.setDefaultCloseOperation(EXIT_ON_CLOSE);
|
||||
|
||||
setTitle("Twenty Codes, LLC Order Database");
|
||||
JPanel panel = new JPanel();
|
||||
|
||||
@@ -100,7 +100,7 @@ public class ShowAllDialog extends JFrame implements ActionListener, ProgressLis
|
||||
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent arg0) {
|
||||
setVisible(false);
|
||||
this.dispose();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user