🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

read-only JTextField not greyed-out ?

#9295
From: Stephen Legge
Date: Tue, 25 Apr 2000 00:00
11 lines
942 bytes
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: <8e46ul$4nf4@bornews.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,51d919679d20f6ec,start
X-Google-Attributes: gid111d45,public
From: "Stephen Legge" <stephen@cryptocard.com>
Subject: read-only JTextField not greyed-out ?
Date: 2000/04/25
Message-ID: <8e46ul$4nf4@bornews.borland.com>
X-Deja-AN: 615467461
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing