Package javax.swing.plaf

Examples of javax.swing.plaf.ComboBoxUI


        assertFalse(propertyChangeController.isChanged());
    }

    public void testSetUI() throws Exception {
        assertNotNull(comboBox.getUI());
        ComboBoxUI newUI = new ComboBoxUI() {
            @Override
            public boolean isFocusTraversable(final JComboBox arg0) {
                return false;
            }
View Full Code Here


    JComponent result = (JComponent) super.getListCellRendererComponent(
        list, value, index, isSelected, cellHasFocus);

    ListUI baseListUI = list.getUI();
    ComboBoxUI baseComboUI = combo.getUI();
    if ((baseListUI instanceof SubstanceListUI)
        && (baseComboUI instanceof SubstanceComboBoxUI)) {
      SubstanceListUI listUI = (SubstanceListUI) baseListUI;
      SubstanceComboBoxUI comboUI = (SubstanceComboBoxUI) baseComboUI;
View Full Code Here

                return monthFormat.format(new Date());
        }
    }
   
    public void updateUI() {
        ComboBoxUI cui = (ComboBoxUI) UIManager.getUI(this);
        if (cui instanceof MetalComboBoxUI) {
                cui = new MetalDateComboBoxUI();
        } else if (cui instanceof MotifComboBoxUI) {
                cui = new MotifDateComboBoxUI();
        } else if (cui instanceof WindowsComboBoxUI) {
View Full Code Here

    addItem(item);
    super.setSelectedItem(item);
  }

  public void updateUI() {
    ComboBoxUI cui = (ComboBoxUI) UIManager.getUI(this);
    if (cui instanceof MetalComboBoxUI) {
      cui = new MetalDateComboBoxUI();
    } else if (cui instanceof MotifComboBoxUI) {
      cui = new MotifDateComboBoxUI();
    } else if (cui instanceof WindowsComboBoxUI) {
View Full Code Here

TOP

Related Classes of javax.swing.plaf.ComboBoxUI

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.