home *** CD-ROM | disk | FTP | other *** search
/ Australian PC Authority 1999 May / may1999.iso / May / JBUILDER / JSAMPLES.Z / SwingSet$15.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-04-30  |  1.3 KB  |  23 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$15 implements ActionListener {
  6.    // $FF: synthetic field
  7.    private final SwingSet this$0;
  8.  
  9.    public void actionPerformed(ActionEvent var1) {
  10.       String var2 = JOptionPane.showInputDialog(this.this$0, "Please enter your name:");
  11.       if (var2 != null) {
  12.          Object[] var3 = new Object[]{"Thank you for using SWING ", var2};
  13.          JOptionPane.showMessageDialog(this.this$0, var3);
  14.       }
  15.  
  16.    }
  17.  
  18.    // $FF: synthetic method
  19.    SwingSet$15(SwingSet var1) {
  20.       this.this$0 = var1;
  21.    }
  22. }
  23.