Forums Register Login

A question anoying me

+Pie Number of slices to send: Send
Hello:
If I want to creat three buttons ,the three buttons are not in a horizon
line ,but in a vertical line .How to write codes?
thanks
LeiXiaowen(China)
+Pie Number of slices to send: Send
Try using gridBagLayout
assign gridbagconstraints for each button
and give gridx=0 for all 3 buttons
gridy= 0, 1, 2 respectively for the 3 buttons
+Pie Number of slices to send: Send
add them to a panel set as GridLayout 3 rows, 1 column

something like this

+Pie Number of slices to send: Send
Or use JGoodies FormLayout.
It's a layout very easy to use.You can go here: www.jgoodies.com for more details.
I'm from China too. This do be a good place for you to learn java and practise your english.
Good luck!
I suggest huckleberry pie. But the only thing on the gluten free menu is this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 601 times.
Similar Threads
one form, three actions?
Need to insert a vertical line in Swing - Very Urgent and important
Please Help?
button problem
Marcus #16
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 09:22:24.