Java Swing JList

Java examples for Swing:JList

Description

Click the following links for the tutorial for Swing and JList.

  1. What is JList
  2. Create a JList using a Vector
  3. JList that displays a list of colors.
  4. JList that allows multiple selections.
  5. Create and use JList, fill string value to JList
  6. Handle Selection event for JList
  7. Change Selection mode for JList
  8. Change Selection index for JList


  9. Share Model between JList and JComboBox
  10. Add Drag and drop support for list control
  11. Cut, copy, paste and drag and drop using three instances of JList
  12. JList location Index File List
  13. JList point Is In Actual Bounds
  14. get Double Clicked Item In JList
  15. add To JList List
  16. fill JList List


  17. remove From JList List
  18. set Selected List item on JList
  19. fill Collection to JList
  20. add Double Click Event to JList
  21. set Selection to JList
  22. JList ListModel to List
  23. List to JList ListModel
  24. Swing ListModel contains
  25. Swing ListModel index Of
  26. swing.ListModel last Index Of
  27. DefaultListModel move Item Up
  28. DefaultListModel remove Item
  29. move JList Item Down
  30. Links two JLists so that if an element is clicked on one it is moved to the other list.
  31. checks whether the selected items can be moved down in JList
  32. checks whether the selected items can be moved up in JList
  33. moves the selected items to the end in JList
  34. moves the selected item down by 1 in JList
  35. moves the selected items by a certain amount of items in a given direction in JList
  36. moves the selected items to the top in JList
  37. moves the selected items up by 1 in JList
  38. Selects all duplicate elements on given JList.
  39. Selects all elements, what equal to given argument listElement on given JList.