Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

font j label

 
hari thatikonda
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi i have a label that label contains two lines of text each with different size and text. how can i put 2 different ones. please write the excutable code (full)
thank u
hari
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please write the excutable code (full)

That's not what we are here for. We are here to help you learn. Providing all your code for you teaches you nothing. If you would like specific guidence on how to achieve what you desire, please let me know.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JLabels can render HTML, so if you can encode your two lines using html markup, that should work.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic