Top "Jlist" questions

JList is a Java Swing component that displays a list of objects and allows the user to select one or more items.

Using the JList .setModel() method with a class as an argument

My ultimate goal is to have a JList which refreshes its content at runtime, and I have found a solution …

java swing jlist
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
How to set multiple items as selected in JList using setSelectedValue?

I have a jList that is populated dynamically by adding to the underlying listModel. Now if I have three Strings …

java swing selection jlist
Convert ArrayList to DefaultListModel

I'm beginner in Java. I really need to return DefaultTableModel (javax.swing) from array or ArrayList. It is possible? I …

java arrays swing jlist
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
JList Right-click shows menu (Use, drop, cancel)

I've been scouring the internet for this answer. I have a simple JList with items inside it. When I right-click, …

java swing popup jlist japplet
JList fires valueChanged twice when a value is changed via mouse

I recently encountered a bug in java where JList will fire the valueChanged() method twice when changing a value with …

java swing jlist java-7 listselectionlistener
How to create JList with icon and text?

I have this code want to make JList talk text and icon what must to do. Some persons advice me …

java swing file user-interface jlist
JList.getModel() ClassCastException

When I call JList<String>.getModel() and cast it to DefaultListModel<String> it gives me this …

java swing jlist
Can I set the selected item for a JList without having an event thrown to the listeners?

I am working on a viewer, which uses a JList to show thumbnails of the pages of a document. The …

java swing events selection jlist