This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
    Bookmark Topic Watch Topic
  • New Topic

hi  RSS feed

 
hari thatikonda
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Report post to moderator
hi can u place two lines with different font and size on one jlabel with ou html
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
You've already asked this here and gotten answers from some Really Smart People. HTML is the only way to get formatted text in a JLabel.

If you don't want to use HTML for some reason, then you could just use two JLabels, one on top the other, packed into a vertical Box.

I'm closing this thread; if the discussion needs to be continued, do so at the link above.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!