🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Text wrap on modal JDialog

#7294
From: John McGrath TeamB
Date: Sat, 30 Jun 2001 23:22
23 lines
1630 bytes
On Fri, 29 Jun 2001 22:24:03 -0400, swett@starband.com wrote:

> I've tried using a text panel (with editing disabled)
> instead of a label, but it behaves the same way.

The problem is in this question:  What is the preferred size for the 
text area?  Should it be laid out as one very long line?  Or two lines 
that are more or less half that width.  Or 3, 4, or 5 lines that are 
thinner than that?

Since JTextArea has no way to answer that, it asks for a single line
a the maximum width.  So if you use a layout manager that will give the 
JTextArea its preferred size, that is what you will get.  You can fix 
this by changing the behavior of the layout manager.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <MPG.15a825e39054d39a98a30d@forums.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3b3d38bb_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,74d2250a5fb395f4
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-06-30 16:27:53 PST
From: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: Text wrap on modal JDialog
Date: Sat, 30 Jun 2001 19:22:24 -0400
Message-ID: <MPG.15a825e39054d39a98a30d@forums.borland.com>
References: <3b3d38bb_1@dnews>
X-Newsreader: MicroPlanet Gravity v2.30
NNTP-Posting-Host: 209.92.40.60
X-Trace: dnews 993943343 209.92.40.60 (30 Jun 2001 16:22:23 -0700)
Lines: 23
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews