01: /*
02: * ShellAboutBox.java
03: */
04:
05: package applicationpackage;
06:
07: import org.jdesktop.application.Action;
08:
09: public class ShellAboutBox extends javax.swing.JDialog {
10:
11: public ShellAboutBox(java.awt.Frame parent) {
12: super (parent);
13: initComponents();
14: getRootPane().setDefaultButton(closeButton);
15: }
16:
17: @Action
18: public void closeAboutBox() {
19: setVisible(false);
20: }
21:
22: /** This method is called from within the constructor to
23: * initialize the form.
24: * WARNING: Do NOT modify this code. The content of this method is
25: * always regenerated by the Form Editor.
26: */
27: // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
28: private void initComponents() {
29: }// </editor-fold>//GEN-END:initComponents
30:
31: // Variables declaration - do not modify//GEN-BEGIN:variables
32: private javax.swing.JButton closeButton;
33: // End of variables declaration//GEN-END:variables
34:
35: }
|