• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to align the Button's label?

 
Shay Gaghe
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you use a JButton try with
- setHorizontalTextPosition
- setVerticalTextPosition
- setHorizontalAlignment (with icon)
- setVerticalAlignment (with icon)
Laurent

------------------
Laurent Leonard
Laurent.Leonard@advalvas.be
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!