home *** CD-ROM | disk | FTP | other *** search
/ Borland JBuilder 6 / jbuilder6.iso / IBM VisualAge for Java Enterprise v4.0 Retail / ivj40 / setup / IDE.Cab / F77448_VAJava2StatusComboBoxUI.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-04-25  |  1.9 KB  |  33 lines

  1. package com.ibm.ivb.jface.vajava2;
  2.  
  3. import com.ibm.ivb.jface.basic.BasicStatusComboBoxUI;
  4. import java.awt.Color;
  5. import javax.swing.JButton;
  6. import javax.swing.JComponent;
  7. import javax.swing.UIManager;
  8. import javax.swing.plaf.ComponentUI;
  9.  
  10. public class VAJava2StatusComboBoxUI extends BasicStatusComboBoxUI {
  11.    private static final String kCBIBMCopyright = "(c) Copyright IBM Corporation 1998";
  12.  
  13.    protected JButton createArrowButton() {
  14.       VAJava2ArrowButton var1 = new VAJava2ArrowButton(this, super.comboBox, ((BasicStatusComboBoxUI)this).createStatusComboBoxIcon(), super.comboBox.isEditable(), super.currentValuePane, super.listBox);
  15.       return var1;
  16.    }
  17.  
  18.    public static ComponentUI createUI(JComponent var0) {
  19.       return new VAJava2StatusComboBoxUI();
  20.    }
  21.  
  22.    public void installUI(JComponent var1) {
  23.       super.installUI(var1);
  24.       var1.setBackground(VAJava2LookAndFeel.getDark1());
  25.       super.listBox.setBackground((Color)UIManager.get("List.background"));
  26.    }
  27.  
  28.    public void uninstallUI(JComponent var1) {
  29.       super.uninstallUI(var1);
  30.       var1.setBackground((Color)UIManager.get("Panel.background"));
  31.    }
  32. }
  33.