combobox

R

Robbie

Hello, i'm a n00b, who's learning to programme in jbuilder.

I wonderer how to get a list in a combobox.

I guess it's very easy, but really can't get it done yet.

greets
 
S

Sudsy

Robbie said:
Hello, i'm a n00b, who's learning to programme in jbuilder.

I wonderer how to get a list in a combobox.

I guess it's very easy, but really can't get it done yet.

greets

Check the javadocs, particularly the constructors for JComboBox.
There's one variant which takes an array of Objects and another
which takes a Vector. To populate a vector is child's play:

Vector v = new Vector();
v.add( "an item" );
v.add( "another one" );
....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top