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

  1. import com.sun.java.swing.AbstractButton;
  2. import com.sun.java.swing.JRadioButton;
  3. import java.awt.event.ActionEvent;
  4. import java.awt.event.ActionListener;
  5. import java.util.EventObject;
  6.  
  7. final class TablePanel$10 implements ActionListener {
  8.    // $FF: synthetic field
  9.    private final JRadioButton val$resizeModeButton3;
  10.    // $FF: synthetic field
  11.    private final JRadioButton val$resizeModeButton2;
  12.    // $FF: synthetic field
  13.    private final TablePanel this$0;
  14.    // $FF: synthetic field
  15.    private final JRadioButton val$resizeModeButton1;
  16.  
  17.    public void actionPerformed(ActionEvent var1) {
  18.       JRadioButton var2 = (JRadioButton)((EventObject)var1).getSource();
  19.       boolean var3 = ((AbstractButton)var2).isSelected();
  20.       if (var3) {
  21.          if (var2 == this.val$resizeModeButton1) {
  22.             this.this$0.tableView.setAutoResizeMode(0);
  23.             return;
  24.          }
  25.  
  26.          if (var2 == this.val$resizeModeButton2) {
  27.             this.this$0.tableView.setAutoResizeMode(1);
  28.             return;
  29.          }
  30.  
  31.          if (var2 == this.val$resizeModeButton3) {
  32.             this.this$0.tableView.setAutoResizeMode(2);
  33.          }
  34.       }
  35.  
  36.    }
  37.  
  38.    // $FF: synthetic method
  39.    TablePanel$10(JRadioButton var1, JRadioButton var2, JRadioButton var3, TablePanel var4) {
  40.       this.val$resizeModeButton1 = var1;
  41.       this.val$resizeModeButton2 = var2;
  42.       this.val$resizeModeButton3 = var3;
  43.       this.this$0 = var4;
  44.    }
  45. }
  46.