my dog learned polymorphism*
The moose likes Swing / AWT / SWT and the fly likes JComboBox not working properly on a GridBagLayout ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JComboBox not working properly on a GridBagLayout ??" Watch "JComboBox not working properly on a GridBagLayout ??" New topic
Author

JComboBox not working properly on a GridBagLayout ??

Fernando Sanz
Ranch Hand

Joined: Jun 27, 2003
Posts: 101
Hi guys, I've got a very simple class to enter data of a new Customer.
The user needs to select a branch from a drop down list (a JComboBox), but, the list of names is covered up by the labels that are in a lower position.
If you'd compile this short code, you'll see what I mean. I just don't understand it, because it works in other classes I've written (with different Layouts)

Thanks for having a look
Fernando Sanz
Ranch Hand

Joined: Jun 27, 2003
Posts: 101
OK, I have it now, I just didn't have to use Label, but JLabel
also, now my code is much nicer (shame on the me for the previous one...)
thanks anyway!
 
wood burning stoves
 
subject: JComboBox not working properly on a GridBagLayout ??