Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_java thread: SPAM: Re: Auto fill combo box


Message #1 by "Steve Swett" <swett@b...> on Mon, 30 Dec 2002 16:06:07 -0500
I'm not sure what you mean by "Auto-fill".  Here's how you'd load one:

myComboBox.removeAllItems();
myComboBox.addItem("(none)");
myComboBox.addItem("01M - Medical");
myComboBox.addItem("01E - Engineering");
myComboBox.addItem("01T - Technical");

Of course, the addItem statements could be in a loop that reads from another
list or through database rows or something.

Maybe I don't understand the question.


----- Original Message -----
From: "Larry Epps" <slash869@h...>
To: "Professional Java" <pro_java@p...>
Sent: Sunday, December 29, 2002 3:16 PM
Subject: [pro_java] Auto fill combo box


> Hey everyone,
>
>      Can anyone tell me where I might can find a good working Auto-fill
> combo box example and source in java.
>
> Thanks
>


  Return to Index