<<< SwingMain.java | Index | A5 Setting the Window Close Box, Cont. >>> |
Alternatively, it is possible to set up a WindowAdapter-derived class independently:
Swing demo A5 uses sublassing main application frame named ApplicationFrame. The ApplicationFrame extends javax.swing.JFrame, and uses Dimension, JPanel, java.awt.event.WindowAdapter, JFrame.addWindowListener:
Class SwingMain: SwingMain.java (download)
<<< SwingMain.java | Index | A5 Setting the Window Close Box, Cont. >>> |