Re: CommandAction for Command.OK w/o the send key
RJH wrote:
...
I've got a question that I cant seem to figure out from searching
and that is: I am using a canvas ..
Why a Canvas? Drawing can be done directly on
a Panel or JPanel. I have never found much use
for Canvas.
Why AWT, rather than Swing? AWT is fine for
some things, but Swing has a much richer set of
GUI components.
..and adding commands ...
What do you mean by that?
...to that canvas
for certain actions, namely that of Command.
Huh? That means nothing to me.
..OK to select an option. It
works fine, but the problem I am coming across is that CommandAction
is being entered with Command.OK as it command both when the OK key as
well as the Send Key is pressed. Is there a way to disable the send
key so that it does not fire off the Command.OK or even check to see
which key was pressed inside the CommandAction, so that I can
disregard it?
I had a dozen more questions that popped up while
reading the rest of that. But then I realised, they
would all be explained by an SSCCE.
<http://www.physci.org/codes/sscce.html>
--
Andrew Thompson
http://www.athompson.info/andrew/
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200705/1