Article View: borland.public.jbuilder.java.swing
Article #9298Re: read-only JTextField not greyed-out ?
From: Yasser
Date: Tue, 25 Apr 2000 00:00
Date: Tue, 25 Apr 2000 00:00
15 lines
1076 bytes
1076 bytes
Try changing the enabled to false Stephen Legge wrote: > When I set a JTextField's editable attribute to false, it stays white -- I'd > like it to be greyed out like the Windows standard for a read-only edit-box. > Is there an easy way to do this or do I have to change the color myself? > > The problem is, I don't want to change colors if I don't have to because it > looks fine in other "Look&Feel"s, like Java L&F for instance. > > Thanks for any help! > > Stephen Legge > Ottawa, Canada
Technical Details
Message-ID:
<3905BF09.C1675892@us.ibm.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8e46ul$4nf4@bornews.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,51d919679d20f6ec X-Google-Attributes: gid111d45,public From: Yasser <YasserSheriff@us.ibm.com> Subject: Re: read-only JTextField not greyed-out ? Date: 2000/04/25 Message-ID: <3905BF09.C1675892@us.ibm.com> X-Deja-AN: 615507214 Content-Transfer-Encoding: 7bit References: <8e46ul$4nf4@bornews.borland.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing