home *** CD-ROM | disk | FTP | other *** search
- import com.sun.java.swing.tree.DefaultMutableTreeNode;
- import java.awt.event.ActionEvent;
- import java.awt.event.ActionListener;
-
- class SampleTree$RemoveAction implements ActionListener {
- // $FF: synthetic field
- private final SampleTree this$0;
-
- public void actionPerformed(ActionEvent var1) {
- DefaultMutableTreeNode var2 = this.this$0.getSelectedNode();
- if (var2 != null && var2 != (DefaultMutableTreeNode)this.this$0.treeModel.getRoot()) {
- this.this$0.treeModel.removeNodeFromParent(var2);
- }
-
- }
-
- SampleTree$RemoveAction(SampleTree var1) {
- this.this$0 = var1;
- this.this$0 = var1;
- }
- }
-