Changeset 38 in tmcsimulator for trunk/src/tmcsim/client


Ignore:
Timestamp:
05/04/2016 04:57:29 PM (10 years ago)
Author:
jdalbey
Message:

CADMenu.java: changed default window close operation to EXIT.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tmcsim/client/cadclientgui/screens/CADMenu.java

    r3 r38  
    2222import javax.swing.JFrame; 
    2323import javax.swing.JLabel; 
     24import static javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE; 
    2425 
    2526/** 
     
    8687        setFocusable(true); 
    8788        pack(); 
    88         setDefaultCloseOperation(DO_NOTHING_ON_CLOSE); 
     89        //  Unsure why this was "do nothing" because it prevents the Menu frame 
     90        //  from closing so the user can't terminate the application. 
     91        //        setDefaultCloseOperation(DO_NOTHING_ON_CLOSE); 
     92        setDefaultCloseOperation(EXIT_ON_CLOSE); 
    8993        setVisible(false); 
    9094    } 
Note: See TracChangeset for help on using the changeset viewer.