Top "Listcellrenderer" questions

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
display a non-selectable default value for JComboBox

I have a JComboBox that contains three Items {"Personel", "Magasinier", "Fournisseur"}. I want this JComboBox to display the value "Choisir …

java swing jcombobox prompt listcellrenderer
Java JList setting color of items

could you please help me, how to change color of items showed in JList? I'm making an user JList where …

java swing jlist listcellrenderer
Swing JList with multiline text and dynamic height

I already read/tried these posts but that didn't help: Display multiple lines within a Jlist cell How to get …

java swing jlist expand listcellrenderer
How to add two columns in a Jlist?

I found a Dual JList sample code, but I need two columns in a Jlist. How to add two columns …

java swing jtable jlist listcellrenderer
Is it possible to have a different font colors on one JLabel inside in the JList?

I have a list of words in my Jlist and beside of every words are their definitions. I want that …

java swing intellij-idea listcellrenderer
Custom ListCellRenderer will not change background color

I have this class: @SuppressWarnings("serial") private class DataCellRenderer extends JLabel implements ListCellRenderer { public DataCellRenderer() { setHorizontalAlignment(SwingConstants.RIGHT); } @Override public …

java swing jlist listcellrenderer