This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JComboBox not working properly on a GridBagLayout ??

 
Fernando Sanz
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic