Top "Jcombobox" questions

A JComboBox is a Java GUI object.

How to set Icon to a JLabel from an image from a folder?

I am trying to set an icon to a JLabel from a folder of images whenever an item is selected …

java swing jlabel jcombobox imageicon
Why is itemStateChanged on JComboBox is called twice when changed?

I'm using a JComboBox with an ItemListener on it. When the value is changed, the itemStateChanged event is called twice. …

java swing jcombobox itemlistener
Netbeans - Entering items in a jComboBox

I have generated a GUI from netbeans in which I have placed a combobox too. By default, the items in …

java netbeans jcombobox
JComboBox width

I have created a jComboBox but it takes the full width of the frame. how to set the width fixed. …

java swing jcombobox dimensions
Get Value from JComboBox

I have JComboBox with 2 columns and I have JButton. When I click the JButton, I need to get the result …

java swing jbutton jcombobox listcellrenderer
How to update JComboBox content from ArrayList?

I have JComboBox based on ArrayList: private ArrayList<String> klienci = new ArrayList<String>(); private JComboBox klienciLista; …

java swing arraylist jcombobox
Dynamically change JComboBox

I am fetching the data values from the database successfully. I have also stored them into a String[] array. I …

java swing jcombobox
JComboBox autocomplete

How do I perform auto-complete in editable JComboBox in Netbeans 7.1 like in ComboBox in VB dot net. I have a …

java swing autocomplete jcombobox
Detecting when user presses enter in Java

I have a subclass of JComboBox. I attempt to add a key listener with the following code. addKeyListener(new KeyAdapter() { …

java events swing jcombobox keylistener
How to configure JComboBox not to select FIRST element when created?

Problem: Update: From the Java SE 6 API: public JComboBox() Creates a JComboBox with a default data model. The default data …

java swing jcombobox