Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
Forums
Register
Login
Java
»
Swing / AWT / SWT
How to align the Button's label?
Shay Gaghe
,
Ranch Hand
Sep 30, 2001 09:28:00
(0 cow)
(0 skulls)
+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
Laurent Leonard
,
Ranch Hand
Oct 01, 2001 04:35:00
(0 cow)
(0 skulls)
+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
Post by:
autobot
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
.