Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Display Access data in JList  RSS feed

 
sae0203
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
currently, i can only use for loop to display product 1 to 9... but it is unrelated to the items in the Access? how should i write the get.ProductID???

//items in thr list box
listModel = new DefaultListModel();
listModel.addElement("---ALL---");
//to display the products
for(int i=1; i<=9; i++)
{
listModel.addElement("Product " + i);
}
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!