Results 1 to 3 of 3

Thread: Shortcut

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Resolved Shortcut

    Need help on how to doing "Ctrl-S" as shortcut on a JMenuItem. Thanks.
    Last edited by nebulom; May 24th, 2005 at 04:12 AM.

  2. #2

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Re: Shortcut

    Thanks, here's a code btw if anyone might find useful.

    mnunew.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N,KeyEvent.CTRL_MASK));

    where mnunew is a JMenuItem+

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width