🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: setText

#7539
From: Khurram Shakir
Date: Wed, 17 Jan 2001 15:32
16 lines
1420 bytes
Use Constructor of JTextField,
JTextField(int columns)
it means give some column length in constructor let say.
I think after this , your JTextField never resize after setText.
--
Khurram Shakir
Sun Certified Programmer for Java 2 Platform
"Yasser" <YasserSheriff@us.ibm.com> wrote in message
news:3A65AFE9.2F194312@us.ibm.com...
> The settext method for my Jtextfields resizes the field and messes up my
> layout. Is there a way I could stop it from doing that. I think it calls
> a repaint and thats what does it.
>
> thanks
> yasser
>
Technical Details
Message-ID: <3a65bb30_1@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!203.135.53.84
References: <3A65AFE9.2F194312@us.ibm.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,49b07e29a1fa7a4c
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2001-01-17 07:42:07 PST
From: "Khurram Shakir" <kshakir@softhome.net>
Newsgroups: borland.public.jbuilder.java.swing
References: <3A65AFE9.2F194312@us.ibm.com>
Subject: Re: setText
Date: Wed, 17 Jan 2001 20:32:47 +0500
Lines: 18
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: <3a65bb30_1@dnews>
X-Trace: 17 Jan 2001 07:33:04 -0800, 203.135.53.84
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!203.135.53.84