🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #19394

Re: How to wrap text?

#19394
From: Dan Acton
Date: Tue, 10 Feb 1998 00:00
41 lines
1638 bytes
There is a MultiLineLabel class in Java in a Nutshell, 2nd Edition. Its a
subclass of Canvas, the only limitation is that you have to insert "\n" in
your Strings so that it knows where to break the lines. It wouldn't be too
hard to modify the class to do this intelligently, though.

If you don't have the book, you can get the source off their web site:
http://www.ora.com

Does George Costanza work at your company? :-)

Dan Acton
Beak International Inc.


Steve Klein wrote in message <34DE0649.6A138DF6@ewbooks.com>...
>Would like to know how to get a String to wrap to the next line when its
>length goes beyond the width of the panel.
>
>Thanks for the help.
>
>Steve Klein
>Vandelay Enterprises - Website Design and Hosting
>http://www.vedesign.com
>
>          A D G R A F I X
>          Website Hosting
>
>     + No Long-Term Contracts
>     + 30-Day Guarantee
>     + 24-Hour Phone Support
>     + 1 Gb of Transfer per Day
>     + POP with Mulitiple Aliases
>     + Fast T3 Technology
>     + CGI Scripts
>     + Web Site Manager Software
>
>  FREE Server Setup - Limited Time Only!
>        http://www.vedesign.com
>
>
Technical Details
Message-ID: <6bpu8v$ea42@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <34DE0649.6A138DF6@ewbooks.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,71c8bd3b3732c396
X-Google-Attributes: gidf74b3,public
From: "Dan Acton" <dacton@beak.com>
Subject: Re: How to wrap text?
Date: 1998/02/10
Message-ID: <6bpu8v$ea42@forums.borland.com>
X-Deja-AN: 323781393
References: <34DE0649.6A138DF6@ewbooks.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Organization: Beak International Inc.
Newsgroups: borland.public.jbuilder.java.language