dcsimg
string arrays and vectors
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ALICE_FRANCOIS
Posted On:   Friday, June 1, 2001 11:29 AM

Does anyone know how to take a Resultset and turn it into a String Array or Vector?

I need to populate a ComboBox, but there is so much data that the addItem function is just want to slow. I am talking thousands of customers names. So how do I quickly get my Resultset to populate a Jcombobox.

Thanks

Re: string arrays and vectors

Posted By:   Anonymous  
Posted On:   Monday, June 4, 2001 11:11 AM

As John rightly states, don't use addItem() for large sets, instead use the model to load them all at once. I am mainly putting in a response to say that this is not really a JDBC issue. You should look to the AWT/Swing FAQs to help with this as well as the Java Tutorial and articles/tutorials at the JDC. Good luck.

Re: string arrays and vectors

Posted By:   John_Zukowski  
Posted On:   Friday, June 1, 2001 01:30 PM

Do you really think having a JComboBox item with thousands of elements in it is an appropriate control to show a user? How useful do you think it will be?
About | Sitemap | Contact