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
paul wheaton
Ron McLeod
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
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
[email protected]
Laurent LEONARD
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...