home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &… the Search for Life CD 3 / 0_CD-ROM.iso / install / jre1_3 / lib / rt.jar / javax / swing / plaf / basic / BasicSplitPaneUI$KeyboardEndHandler.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.0 KB  |  29 lines

  1. package javax.swing.plaf.basic;
  2.  
  3. import java.awt.Insets;
  4. import java.awt.event.ActionEvent;
  5. import java.awt.event.ActionListener;
  6.  
  7. public class BasicSplitPaneUI$KeyboardEndHandler implements ActionListener {
  8.    // $FF: synthetic field
  9.    private final BasicSplitPaneUI this$0;
  10.  
  11.    public BasicSplitPaneUI$KeyboardEndHandler(BasicSplitPaneUI var1) {
  12.       this.this$0 = var1;
  13.    }
  14.  
  15.    public void actionPerformed(ActionEvent var1) {
  16.       if (BasicSplitPaneUI.access$100(this.this$0)) {
  17.          Insets var2 = this.this$0.splitPane.getInsets();
  18.          int var3 = var2 != null ? var2.bottom : 0;
  19.          int var4 = var2 != null ? var2.right : 0;
  20.          if (BasicSplitPaneUI.access$000(this.this$0) == 0) {
  21.             this.this$0.splitPane.setDividerLocation(this.this$0.splitPane.getHeight() - var3);
  22.          } else {
  23.             this.this$0.splitPane.setDividerLocation(this.this$0.splitPane.getWidth() - var4);
  24.          }
  25.       }
  26.  
  27.    }
  28. }
  29.