How do I put html in a JLabel in java?

To put html in a JLabel, you would make it look something like this

 JLabel label = new JLabel("<html><yourTagHere><yourOtherTagHere>this is your text</yourOtherTagHere></yourTagHere></html>");

Leave a Comment