home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / javax / swing / plaf / basic / BasicComboPopup$ItemHandler.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  919 b   |  24 lines

  1. package javax.swing.plaf.basic;
  2.  
  3. import java.awt.event.ItemEvent;
  4. import java.awt.event.ItemListener;
  5.  
  6. public class BasicComboPopup$ItemHandler implements ItemListener {
  7.    // $FF: synthetic field
  8.    private final BasicComboPopup this$0;
  9.  
  10.    protected BasicComboPopup$ItemHandler(BasicComboPopup var1) {
  11.       this.this$0 = var1;
  12.    }
  13.  
  14.    public void itemStateChanged(ItemEvent var1) {
  15.       if (var1.getStateChange() == 1 && !this.this$0.valueIsAdjusting) {
  16.          this.this$0.valueIsAdjusting = true;
  17.          this.this$0.syncListSelectionWithComboBoxSelection();
  18.          this.this$0.valueIsAdjusting = false;
  19.          this.this$0.list.ensureIndexIsVisible(this.this$0.comboBox.getSelectedIndex());
  20.       }
  21.  
  22.    }
  23. }
  24.