Java JComboBox setComboBoxTheme(JComboBox comboBox)

Here you can find the source of setComboBoxTheme(JComboBox comboBox)

Description

set Combo Box Theme

License

Open Source License

Declaration

public static void setComboBoxTheme(JComboBox comboBox) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import javax.swing.*;

public class Main {

    public static void setComboBoxTheme(JComboBox comboBox) {
        comboBox.setEditable(true);/*from  w w  w . j a  v a  2s .c o  m*/
        ((JTextField) comboBox.getEditor().getEditorComponent()).setEditable(false);
    }
}

Related

  1. registerBrowseButtonListener(final JComboBox comboBox, final JButton button, final boolean chooseFile, final boolean isOpen, final FileFilter fileFilter, final File initialDirectory)
  2. removeAllListeners(JComboBox box)
  3. resetComboBoxInfo(JComboBox jComboBoxField, ArrayList comboBoxArray, String expression)
  4. resetPhaseBox(JComboBox phaseBox)
  5. setColorMenu(JComboBox choice)
  6. setErrorBackground(JComboBox comp)
  7. setJComboBoxAsHeavyweight(JComboBox combo)
  8. setPopupComboChoices(JComboBox aComboBox, String aS)
  9. setShouldUseAlternSdk(boolean shouldUse, final JCheckBox useAlternativeSdkCB, final JComboBox alternativeSdksComboBox, final JComboBox myModulesComboBox)