home *** CD-ROM | disk | FTP | other *** search
/ Australian PC Authority 1999 May / may1999.iso / May / JBUILDER / JSAMPLES.Z / SwingSet$14.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-04-30  |  1.4 KB  |  26 lines

  1. import com.sun.java.swing.JOptionPane;
  2. import java.awt.event.ActionEvent;
  3. import java.awt.event.ActionListener;
  4.  
  5. final class SwingSet$14 implements ActionListener {
  6.    // $FF: synthetic field
  7.    private final SwingSet this$0;
  8.  
  9.    public void actionPerformed(ActionEvent var1) {
  10.       int var2 = JOptionPane.showConfirmDialog(this.this$0, "Is SWING cool?");
  11.       if (var2 == 0) {
  12.          JOptionPane.showMessageDialog(this.this$0, "All right!");
  13.       } else {
  14.          if (var2 == 1) {
  15.             JOptionPane.showMessageDialog(this.this$0, "That is too bad, please send us email describing what you don't like and how we can change it.");
  16.          }
  17.  
  18.       }
  19.    }
  20.  
  21.    // $FF: synthetic method
  22.    SwingSet$14(SwingSet var1) {
  23.       this.this$0 = var1;
  24.    }
  25. }
  26.