Thread View: aus.computers.java
3 messages
3 total messages
Started by Morten Endal
Tue, 12 Oct 1999 00:00
Button
Author: Morten Endal
Date: Tue, 12 Oct 1999 00:00
Date: Tue, 12 Oct 1999 00:00
9 lines
919 bytes
919 bytes
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
Re: Button
Author: SkoZombie
Date: Thu, 14 Oct 1999 00:00
Date: Thu, 14 Oct 1999 00:00
17 lines
990 bytes
990 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 buttonObject.setEnabled(false); That will disable the button ... change false to true to re-enable it. -Sko
Re: Button
Author: 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);
}
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads