Forums Register Login

How to align the Button's label?

+Pie Number of slices to send: Send
Hi
by default the label text of a button is centered , how can i align it to the left of the button?
thanks
+Pie Number of slices to send: Send
if you use a JButton try with
- setHorizontalTextPosition
- setVerticalTextPosition
- setHorizontalAlignment (with icon)
- setVerticalAlignment (with icon)
Laurent

------------------
Laurent Leonard
Laurent.Leonard@advalvas.be
Get out of my mind! Look! A tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1112 times.
Similar Threads
Setting the null layout for JMenuBar in JApplet
align JLabel to left
button alignment
Struts 2 - Set Action Attribute From Jsp
2 struts question ?!
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 05:42:01.