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

  1. import com.sun.java.swing.tree.DefaultMutableTreeNode;
  2. import java.awt.event.ActionEvent;
  3. import java.awt.event.ActionListener;
  4.  
  5. class SampleTree$ReloadAction implements ActionListener {
  6.    // $FF: synthetic field
  7.    private final SampleTree this$0;
  8.  
  9.    public void actionPerformed(ActionEvent var1) {
  10.       DefaultMutableTreeNode var2 = this.this$0.getSelectedNode();
  11.       if (var2 != null) {
  12.          this.this$0.treeModel.reload(var2);
  13.       }
  14.  
  15.    }
  16.  
  17.    SampleTree$ReloadAction(SampleTree var1) {
  18.       this.this$0 = var1;
  19.       this.this$0 = var1;
  20.    }
  21. }
  22.