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
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
Swing / AWT / SWT
How to align the Button's label?
Shay Gaghe
Ranch Hand
Posts: 102
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
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
Posts: 35
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
if you use a JButton try with
- setHorizontalTextPosition
- setVerticalTextPosition
- setHorizontalAlignment (with icon)
- setVerticalAlignment (with icon)
Laurent
------------------
Laurent
Leonard
Laurent.Leonard@advalvas.be
Laurent LEONARD
brevity is the soul of wit - shakepeare. Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
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...