Results 1 to 2 of 2
Thread: I need help with JComboBox
- 11-28-2008, 09:53 PM #1
Member
- Join Date
- Nov 2008
- Location
- Canada
- Posts
- 1
- Rep Power
- 0
I need help with JComboBox
What im trying to do is put a string array into this combo box called jComboBoxParts how do i make it show? Right now when i load it, all i see is "Item1..."Item2...etc". Here is my code.
String[] partsString = { "oil can", "windshield", "tires", "v6 Cylinder head", "fuse"};
JComboBox[] jComboBoxParts = new JComboBox[partsString.length];
for(int i=0; i < partsString.length; i++)
{
jComboBoxParts[i] = new JComboBox(partsString[i]);
}
with the bolded work i get an error. Please help. :confused:
- 11-28-2008, 10:05 PM #2
Similar Threads
-
JCombobox
By daniel50096230 in forum NetBeansReplies: 1Last Post: 09-21-2008, 12:23 PM -
Got some trouble with JComboBox
By hungleon88 in forum AWT / SwingReplies: 16Last Post: 09-15-2008, 11:26 AM -
JComboBox
By Fosters in forum AWT / SwingReplies: 0Last Post: 08-10-2008, 01:22 PM -
Help with jComboBox
By Marcus in forum AWT / SwingReplies: 2Last Post: 07-01-2007, 11:08 PM -
jcombobox
By Freddie in forum AWT / SwingReplies: 4Last Post: 05-11-2007, 12:48 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks