Results 1 to 3 of 3
Thread: Help with java.swing.Jlist
- 04-23-2009, 12:42 PM #1
Member
- Join Date
- Apr 2009
- Posts
- 2
- Rep Power
- 0
Help with java.swing.Jlist
hi im making a program which needs to have a list in a box of some description with the contents taken from an object as strings where the order can be changed with buttons linked to another method for reordering the strings in the object. im currently using the Jlist but i cant find a mehtod to update the order of the list.
cheers
- 04-23-2009, 12:50 PM #2
You could use a DefaultListModel and remove an item and add it at the required index, or you implement a custom ListModel that allows ordering.
- 04-23-2009, 01:12 PM #3
Member
- Join Date
- Apr 2009
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
Java Swing
By JavaBean in forum Java TutorialReplies: 1Last Post: 04-11-2009, 03:09 PM -
[swing] Java and sql
By ezee in forum AWT / SwingReplies: 1Last Post: 03-27-2009, 05:55 PM -
Java JList Alignment Question?
By antitru5t in forum New To JavaReplies: 1Last Post: 03-10-2009, 06:44 PM -
GUI Designer for Swing/Java
By balajishenbagarajan in forum AWT / SwingReplies: 20Last Post: 01-27-2009, 12:17 AM -
Java Swing
By RAMYA in forum New To JavaReplies: 3Last Post: 11-12-2008, 07:00 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks