🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #7817

Re: Wrapping the text of a label

#7817
From: Hilde Lehmann
Date: Tue, 02 Jan 2001 02:51
38 lines
1762 bytes
Yes but what I need is automatic wrapping not multiple lines, just like a
JTextArea or JEditorPan.
Any Idea?
Thanks
Hilde Lehmann
Khurram Shakir wrote:

> 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: <3A51422D.F5616309@intercable.net>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!207.248.42.43
References: <3A4F4CFD.DF463ADC@intercable.net> <3a50779a_2@dnews>

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 18:48:44 PST
Message-ID: <3A51422D.F5616309@intercable.net>
Date: Mon, 01 Jan 2001 20:51:25 -0600
From: Hilde Lehmann <mole@intercable.net>
X-Mailer: Mozilla 4.75 [en] (Win95; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: Wrapping the text of a label
References: <3A4F4CFD.DF463ADC@intercable.net> <3a50779a_2@dnews>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 207.248.42.43
X-Trace: 1 Jan 2001 18:48:15 -0800, 207.248.42.43
Lines: 39
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!207.248.42.43