Apr 12, 2006 #1 rekenaar Technical User Feb 16, 2005 38 ZA Hi I need to change the size of fonts at different places in a jlabel, thus I want to use html in the text of the jlabelto change it. Is this possible? Because normal <font>-tag doesn't seem to work. I'm using 1.4.2 Thank you for your time.
Hi I need to change the size of fonts at different places in a jlabel, thus I want to use html in the text of the jlabelto change it. Is this possible? Because normal <font>-tag doesn't seem to work. I'm using 1.4.2 Thank you for your time.
Apr 12, 2006 #2 stefanwagner Programmer Oct 19, 2003 2,373 DE I don't know where to get detailled information, which tags work, and which won't, but <h1>, <h2>, ... works - does that help? seeking a job as java-programmer in Berlin: http://home.arcor.de/hirnstrom/bewerbung Upvote 0 Downvote
I don't know where to get detailled information, which tags work, and which won't, but <h1>, <h2>, ... works - does that help? seeking a job as java-programmer in Berlin: http://home.arcor.de/hirnstrom/bewerbung
Apr 12, 2006 #3 idarke Programmer Jul 23, 2001 420 US Try putting <html> at the beginning of the text, like this: Code: label.setText("<html><font size=2>your text"); Closing tags don't seem to be necessary unless you're switching to another font within the same label. Upvote 0 Downvote
Try putting <html> at the beginning of the text, like this: Code: label.setText("<html><font size=2>your text"); Closing tags don't seem to be necessary unless you're switching to another font within the same label.
Apr 12, 2006 #4 timw Programmer May 3, 2000 1,264 GB HTML text in a JLabel? Am I missing something, since I didn't think this was possible? With a JTextPane this is possible though. Tim Upvote 0 Downvote
HTML text in a JLabel? Am I missing something, since I didn't think this was possible? With a JTextPane this is possible though. Tim
Apr 13, 2006 #5 chrissie1 Programmer Aug 12, 2002 4,517 BE Am I missing something Click to expand... mmm, where shall I begin? Christiaan Baes Belgium "My new site" - Me Upvote 0 Downvote
Am I missing something Click to expand... mmm, where shall I begin? Christiaan Baes Belgium "My new site" - Me