Jason,

        You need to listen to key events from the control the user is typing in,
and then [ctrl] is just a mask on those events.  Take a look at
java.awt.event.InputEvent.  For an answer to the second question, look at
the requestFocus method on javax.swing.JComponent.

Hope this helps
Zack

> -----Original Message-----
> From: Jason Janelle [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 09, 2000 3:49 AM
> To: [EMAIL PROTECTED]
> Subject: GUI Java Questions
>
>
> ***ATTN: MORE OF A JAVA QUESTION THAN A LINUX QUESTION***
>
> I would like to set up a keyboard listener to catch [ctrl]a, [ctrl]m,
> etc. and then exec. a method.  Has anyone done this, and how do I do
> it.
>
> Also, when my app starts I would like to be able to have the curser in
> my JTextField, does anyone know how to set that?
> --------------
> Thanks,
> Jason Janelle
> mailto: [EMAIL PROTECTED]
>
>
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to