lunar
lunar

Reputation: 1232

How to build a form

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.

Upvotes: 0

Views: 90

Answers (2)

Andrew Thompson
Andrew Thompson

Reputation: 168825

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.

Upvotes: 4

AshotN
AshotN

Reputation: 413

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

Upvotes: 0

Related Questions