Article View: aus.computers.java
Article #1041Re: Button
From: eric.robert4
Date: Thu, 14 Oct 1999 00:00
Date: Thu, 14 Oct 1999 00:00
16 lines
1122 bytes
1122 bytes
Morten Endal wrote:
> Is there a method that can change the look and disable the function of
> a Button?
> I need it for disabling some of the buttons during runtime, when their
> functions is not available for the user. It should be eazy, it's done all
> the time in most applications..
>
> ..
> Regards
> morten
just type in your code :
if (myCommand == something) {
myButton.setEnabled(false);
}
Technical Details
Message-ID:
<38063E04.B04F6325@wanadoo.fr>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<Pine.OSF.3.96.991012135323.2279A-100000@silas-2.cc.monash.edu.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d6db,48cc97f778fa8ba7 X-Google-Attributes: gid10d6db,public From: eric.robert4@wanadoo.fr Subject: Re: Button Date: 1999/10/14 Message-ID: <38063E04.B04F6325@wanadoo.fr> X-Deja-AN: 536796998 Content-Transfer-Encoding: 7bit References: <Pine.OSF.3.96.991012135323.2279A-100000@silas-2.cc.monash.edu.au> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@wanadoo.fr X-Trace: wanadoo.fr 939933005 26666 193.250.98.47 (14 Oct 1999 20:30:05 GMT) Organization: Wanadoo, l'internet avec France Telecom Mime-Version: 1.0 NNTP-Posting-Date: 14 Oct 1999 20:30:05 GMT Newsgroups: aus.computers.java