I want to display my array fooditem[8] in the Gui list using looping.
3 Replies - 530 Views - Last Post: 02 August 2015 - 07:58 AM
#1
I want to display my array fooditem[8] in the Gui list using looping.
Posted 02 August 2015 - 12:34 AM
Replies To: I want to display my array fooditem[8] in the Gui list using looping.
#2
Re: I want to display my array fooditem[8] in the Gui list using looping.
Posted 02 August 2015 - 01:57 AM
?? Not nearly enough info ...
#3
Re: I want to display my array fooditem[8] in the Gui list using looping.
Posted 02 August 2015 - 03:44 AM
I have the array of fooditems[6]....and with gui frame...i have combo box and list and some textfields.i want to add contents of array into my jlist..which will later use for selection.
#4
Re: I want to display my array fooditem[8] in the Gui list using looping.
Posted 02 August 2015 - 07:58 AM
jList.setModel(new javax.swing.AbstractListModel() {
fooditems;
public int getSize() { return fooditems.length; }
public Object getElementAt(int i) { return fooditems[i]; }
});
Page 1 of 1

New Topic/Question
Reply


MultiQuote



|