• Post Reply Bookmark Topic Watch Topic
  • New Topic

GridbagLayout help needed

 
Kristof Camelbeke
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following layout : (T= Textfield)
TTTTTTTTT TT
TTTTTTTTTTTTTTTTTT
TTTTTTTTTTTTTTTTTT
TTTTTTTTT TT
TTTTTTTTT TT
TTTTTTTTT TT
TTTTTTTTT TT
The problem is I want the last Textfield of 2 positions right next to the first TextField... So I want something like this :
TTTTTTTTT TT
TTTTTTTTTTTTTTTTTT
TTTTTTTTTTTTTTTTTT
TTTTTTTTT TT
TTTTTTTTT TT
TTTTTTTTT TT
TTTTTTTTT TT
Does anybody know what GridBagConstraints I have to use to achieve this.
Thanks for any reply...
Kristof
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't see what your problem is... the first layout looks exactly like the one you want!

(Just kidding, but if you need to do ASCII artwork to illustrate something, it only works if you surround it in code tags.)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!