• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using Multiple JComboBoxes

 
Casey Buresh
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am currently working on a project that requires use of multiple JComboBoxes on one page, I am using JFrame in order to work it out. The problem I am having is that its not displaying the images that are from each drop-down list don't show up, neither of them show and its confusing me. I have spaced everything out and tried resizing the images so that nothing was interfering with it but it doesn't seem to be working and I don't know why. Any advice would be great.
 
Casey Buresh
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So that you don't have to strain to read my msg I will retype it:

I am currently working on a project that requires use of multiple JComboBoxes on one page, I am using JFrame in order to work it out. The problem I am having is that its not displaying the images that are from each drop-down list don't show up, neither of them show and its confusing me. I have spaced everything out and tried resizing the images so that nothing was interfering with it but it doesn't seem to be working and I don't know why. Any advice would be great.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
these don't look right
new ImageIcon( topNames [ 0 ] )

perhaps
new ImageIcon( top [ 0 ] )
or
new ImageIcon( top [ 0 ], topNames [ 0 ] )
 
Casey Buresh
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THANKS A BUNCH!!! It worked, lol, I didn't make that class, and I hadn't really studied it a whole lot.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!