Khalid
Khalid

Reputation: 303

JAVA GUI Layout - what is best layout for 6 buttons placed vertically with spaces?

I have been recently creating some GUI's for my program. However for my next GUI I want to know what is the best way to create a frame as follows:

It will have a title, Hotel Menu and then under it I want it to have 6 buttons placed vertically with spaces in between them. Wondering what is the best layout I can use to achieve such a thing?

I have used box layout before, but the buttons were uneven sizes and stuck together.

Upvotes: 0

Views: 230

Answers (1)

SHA33
SHA33

Reputation: 115

What IDE you are using?! You can use NetBeans as IDE, it has the advantage of the classical "click-and-drag" GUI design. Else, if you want to manually write the coding, the best way is to use Grid Layout. You can read more about it here

Upvotes: 1

Related Questions