Re: how do I veto a setSelected() on JCheckBox
- From: tar@xxxxxxxxxxxxx (Thomas A. Russ)
- Date: 24 Feb 2006 15:07:43 -0800
"Steve W. Jackson" <stevewjackson@xxxxxxxxxxx> writes:
In article <1140794158.846456.212720@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,....
"rob" <rfwalker@xxxxxxxxxxx> wrote:
Hello all, I am confused as to how to do this?
I would like the change to veto a setSelected
when the event happens but not sure how to go about this
On the other hand, you might also consider simply not enabling the
checkbox if your conditions won't allow its state to change. If it's
not enabled, a user can't very well click it to change its checked state.
That was what I thought of as well.
It has the additional beneficial property of being pro-active and
visible. That means that the user isn't but in the situation of trying
to do something only to have the system then tell him it can't be done.
It is better to make this explicit and visible up front. It will save
the user time and aggravation, so I would consider it to be a much
superior solution. It isn't as if the user can enter something
arbitrary and unpredictable, so just have the code do the work in advance.
--
Thomas A. Russ, USC/Information Sciences Institute
.
- References:
- how do I veto a setSelected() on JCheckBox
- From: rob
- Re: how do I veto a setSelected() on JCheckBox
- From: Steve W. Jackson
- how do I veto a setSelected() on JCheckBox
- Prev by Date: Re: Writing to a file and a TextArea
- Next by Date: Re: Writing to a file and a TextArea
- Previous by thread: Re: how do I veto a setSelected() on JCheckBox
- Next by thread: Re: how do I veto a setSelected() on JCheckBox
- Index(es):
Relevant Pages
|