
Signature
---
MP3 Automagic CD Cover Creator
http://maccc.filenabber.com
> Why not disable the radio button(s) that shouldn't be selected at that
> time and enable them when they can be selected?
Yes, it would be the logical thing to do but I have to deal with
legacy code
that prevents me from doing that easily. If the user clicks on the
radio button he/she will be asked a question and depending on the
answer the action will be accepted or ignored.
Brian Pipa - 05 Jan 2004 06:27 GMT
>>Why not disable the radio button(s) that shouldn't be selected at that
>>time and enable them when they can be selected?
[quoted text clipped - 4 lines]
> radio button he/she will be asked a question and depending on the
> answer the action will be accepted or ignored.
How about always save the last button clicked, then if one is clicked
and you "ignore" the click, reset the radio group to have the last valid
one selected?
some pseudocode:
int lastSelected;
actionPerformed(ActionEvent e){
if (isSelectionValid()){
lastSelected = currentSelection;
doValidSelectionStuff();
}
else{
setSelected(lastSelected)
}
}

Signature
---
MP3 Automagic CD Cover Creator
http://maccc.filenabber.com
brougham5@yahoo.com - 06 Jan 2004 00:50 GMT
>that prevents me from doing that easily.
Easily?
I'd say that a consistent user experience should usually trump "easily"
solved. Always exceptions of course, and you're the only one in a position
to judge. I'd really try to find another solution so that you're not
reverting buttons after the question is asked.