• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jlist problems

 
mizo halwagy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i have problems with jlist to add items and deal with it and the main problem that i want to add these items from database
how can add items at jlist from database
i mean i don't want to add the items manualy ,i only want when i access to data base i the data come from to data base and add to jlist automaticaly
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no way to automatically construct a JList from a DB query. You'll need to iterate through the ResultSet and store the elements in the JList one by one. What is the reason for not wanting to do that?
 
mizo halwagy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks but can you send me the code of this problem
and how can i communicate with you
 
Campbell Ritchie
Sheriff
Posts: 48386
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by mizo halwagy:
thanks but can you send me the code of this problem
and how can i communicate with you

Please don't try to get answers away from the forum. The idea is that when you show us the problem and somebody helps you find the solution, then everybody can learn from your experience.
[ December 09, 2007: Message edited by: Campbell Ritchie ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic