At 10:57 PM 4/4/2001, Keith Bennett wrote:
>I decided to take this approach: when the Select All menu item is selected,
>generate a Ctrl-A key event and post it to the system queue.  Similarly, the
>following associations can also be made:

Why can't you simply associate an instance of SelectAll action with a menu 
item?

>Copy          Ctrl-C
>Cut           Ctrl-X
>Paste         Ctrl-V
>Close Window  Alt-F4
>
>Do you see any problem with this approach?

Yes, other platforms may/do not use these shortcuts (like the Mac which 
instead uses Command+...).  In addition, other PLAFs may define these 
keystrokes for something else, so you'll be constantly fighting other 
components for control.

Dmitry

_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to