String[] items = new String[25];
JList entries = new JList(items)
When the array is updated shouldn't the Jlist update and become visible?
Jlist and ArraysHow to show a Jlist with updated array
Page 1 of 1
1 Replies - 1171 Views - Last Post: 13 August 2009 - 08:24 PM
Replies To: Jlist and Arrays
#2
Re: Jlist and Arrays
Posted 13 August 2009 - 08:24 PM
paperLocust, on 13 Aug, 2009 - 10:16 AM, said:
String[] items = new String[25];
JList entries = new JList(items)
When the array is updated shouldn't the Jlist update and become visible?
JList entries = new JList(items)
When the array is updated shouldn't the Jlist update and become visible?
they will be all visible with "null"... better to init all of them with "" at least they will show nothing "" better than null
but you will update an items yes it will be shown in the JList
This post has been edited by pbl: 13 August 2009 - 08:25 PM
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote



|