Results 1 to 8 of 8
Thread: Refresh A JList
- 09-11-2011, 05:09 AM #1
- 09-11-2011, 06:30 AM #2
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,143
- Rep Power
- 5
Re: Refresh A JList
Read the JList API and follow the link to the Swing tutorial on "How to Use Lists" where you will find a working example that shows you how to add items to the ListModel.
- 09-11-2011, 06:35 AM #3
- 09-11-2011, 06:47 AM #4
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,143
- Rep Power
- 5
Re: Refresh A JList
The example from the tutorial works fine for me, I don't know why it wouldn't work for you.
- 09-11-2011, 04:58 PM #5
- 09-11-2011, 05:24 PM #6
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,143
- Rep Power
- 5
Re: Refresh A JList
I clicked on the link to download the demo code. Then I compiled and executed the code. (I think you also have to comment out the package statement at the beginning of the code).
- 09-11-2011, 05:53 PM #7
- 09-11-2011, 05:59 PM #8
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,143
- Rep Power
- 5
Similar Threads
-
Link one JList to another JList
By mib1bee in forum AWT / SwingReplies: 1Last Post: 12-31-2010, 07:10 PM -
Link one JList to another JList
By mib1bee in forum Advanced JavaReplies: 1Last Post: 12-30-2010, 06:35 PM -
Link one JList to another JList
By mib1bee in forum New To JavaReplies: 1Last Post: 12-30-2010, 06:24 PM -
Refresh jList
By karq in forum New To JavaReplies: 1Last Post: 07-16-2010, 02:58 AM -
JList refresh
By pbaudru in forum AWT / SwingReplies: 5Last Post: 01-20-2010, 10:24 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks