cann't show data from a DB in a JList
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, May 21, 2002 12:23 AM

Hi all you, guys! here we have a funny question for all you, Data get from a DB is not shown in a JList implemented as: JScrollPane jScrollPane8 = new JScrollPane(); jPanel1.add(jScrollPane8, null); JList ListaProveedores = new JList(); jScrollPane8.getViewport().add(JListProv, null); After having added all data to it, the JList doesn`t show no one. Doing a test as: for(int i = 0; i < ListaProveedores.getModel().getSize(); i++) { System.out.println(ListaProveedores.getModel().getElementAt(i)); } shows us th   More>>

Hi all you, guys!



here we have a funny question for all you,



Data get from a DB is not shown in a JList implemented as:




JScrollPane jScrollPane8 = new JScrollPane();


jPanel1.add(jScrollPane8, null);


JList ListaProveedores = new JList();



jScrollPane8.getViewport().add(JListProv, null);



After having added all data to it, the JList doesn`t show


no one. Doing a test as:



for(int i = 0; i < ListaProveedores.getModel().getSize();


i++)


{


System.out.println(ListaProveedores.getModel().getElementAt(i));


}



shows us the data had been appeared...




any idea, folks?



thanx in advance!

   <<Less
About | Sitemap | Contact