Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can I set the height and width of a JLable text?

 
Jane Green
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to set the JLable (or JButton) text font to be two times higher than the regular font height, is there a way to do it? Anybody know that?
Thanks a lot.
Jane
 
kyle amburn
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure, you can do this for any component.

Kyle
 
Jane Green
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, that's good news. But seems I need more specific transform of the font: I want to stretch the text, that means I need the font height to be doubled but the width don't change. More suggestions? Thanks a lot.
Jane
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic