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.

Reordering JList with Drag and Drop

I encountered a problem regarding reordering elements in a JList using Drag and Drop. This following code is a modification …

java swing drag-and-drop java-7 jlist
Disable items in JList

I'm using a JList as part of a wizard to display all the steps to be performed (it also allows …

java swing jlist
java refreshing an array into jList

OK so I have a JList and the content is provided with an array. I know how to add elements …

java swing applet refresh jlist
warning: [rawtypes] found raw type: DefaultListModel

I'm getting this warning from the compiler which does not make sense at all (at least to me). It basically …

java swing generics netbeans jlist
how to create jcombobox with jcheck box and multiple selection

I want to create JComboBox with checkboxes and multiple selection . i have created a list with check box after rendering …

java swing jcombobox jlist jcheckbox
Adding objects to a JList

I have an object - ArrayList<User> users that contains a few user objects. public class User { int …

java swing jlist
ListSelectionListener invoked twice

class MyListListener implements ListSelectionListener { public void valueChanged (ListSelectionEvent e) { JList source = (JList) e.getSource(); // do something } } JList myList = new JList (…

java swing jlist listselectionlistener
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
Java Swing: JList with ListCellRenderer selected item different height

I'm making a custom ListCellRenderer. I know that you can have different dimensions for each individual cell. But now I …

java swing height jlist
Make JList Values Unselectable

I was wondering how to modify a JList so that clicking any values would not do anything. I have looked …

java swing jlist