Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to make JLabel text display many rows

 
daniel xiao
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to make JLabel text display many rows
Exclusion of this method:
JLabel.setText("<html>hhhhh<br>jjjjjj</html>")
 
VIJAY Yadlapati
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The simple way is to use HTML text only, to have customised LabelText. Otherwise You have to write your own LabelUI.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!