Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GridBagLayout problem

 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm trying to build the following:

lbl1 txt1 bt1 bt2 bt3 bt4
lbl2 txt2 bt5 bt6

but when i try to add button bt5 it allways goes right to bt4 right side!

here's my code:


i tried several constraints variations but with no result

How can i solve this?

TiA
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
panel.add(new JButton("Actualizar"));
panel.add(new JButton("Actualizar"),c);//add the constraint
 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
of course!

thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic