• Post Reply Bookmark Topic Watch Topic
  • New Topic

I need to display one JLabel text to display in two rows/lines  RSS feed

 
daniel xiao
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to display one JLabel text to display in two rows/lines.
I should not create two JLabels for two lines.
I use this method can relization,but it's not best,Who have a good idear??:
label.setText("<html>test line1<br>test line2</html>");
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!