This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JComboBox not working properly on a GridBagLayout ??
 
Similar Threads
Need help with this code
eliminate case sensativeity
JTextArea Problems
GridBagLayout
AWT textfield behave weird when run using MicroSoft JVM