0

I have used a GridBagLayou to arrange on a panel couple of labels and text fields. Now I need to add 2 buttons below text fields beside each other on the right hand side. How can I do it? I think that I need to use other panel, layout them there and then somehow glue those 2 panels? But how? Am I thinking right?

Edited: @Hego555 - if you have nothing to say don't bother to post.

lunar
  • 1,172
  • 7
  • 18
  • 29

2 Answers2

4

The type of layout to which you are referring is typically called a 'nested layout'.

See this nested layout example for some tips. E.G. the combo and checkbox on the top-right of the GUI sound like how you want the two buttons.

Community
  • 1
  • 1
Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
0

Your question is unclear, to make form's you use JPanel, and JLabel and all that good stuff... try this link

AshotN
  • 395
  • 4
  • 15