Article View: borland.public.jbuilder.java.swing
Article #7813Re: Wrapping the text of a label
From: Khurram Shakir
Date: Mon, 01 Jan 2001 12:26
Date: Mon, 01 Jan 2001 12:26
35 lines
1597 bytes
1597 bytes
Swing supports HTML based Labels, its mean if you want multiline label, you can write complete HTML in Label text. e.g. let say you want to write a word like Hello from Java And Hello from Jbuilder (this is two line text) Using same label , you can use String labelText = <html> Hello from Java <br>And Hello from Jbuilder</html> And put this text into label using its setText method. Hope this will help. Regards, Khurram Shakir Sun Certified Programmer for Java 2 Platfrom "Hilde Lehmann" <mole@intercable.net> wrote in message news:3A4F4CFD.DF463ADC@intercable.net... > Is there any way to wrap a text on a label? > > Hilde Lehmann >
Technical Details
Message-ID:
<3a50779a_2@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!xfer13.netnews.com!netnews.com!fr.clara.net!heighliner.fr.clara.net!news.imp.ch!news-zh.switch.ch!newsfeed-zh.ip-plus.net!news.ip-plus.net!bornews.borland.com!dnews!203.135.53.84References:
<3A4F4CFD.DF463ADC@intercable.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,b54caeffc11b087f X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2001-01-01 04:30:19 PST From: "Khurram Shakir" <kshakir@softhome.net> Newsgroups: borland.public.jbuilder.java.swing References: <3A4F4CFD.DF463ADC@intercable.net> Subject: Re: Wrapping the text of a label Date: Mon, 1 Jan 2001 17:26:58 +0500 Lines: 37 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 203.135.53.84 Message-ID: <3a50779a_2@dnews> X-Trace: 1 Jan 2001 04:27:06 -0800, 203.135.53.84 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!xfer13.netnews.com!netnews.com!fr.clara.net!heighliner.fr.clara.net!news.imp.ch!news-zh.switch.ch!newsfeed-zh.ip-plus.net!news.ip-plus.net!bornews.borland.com!dnews!203.135.53.84