Accelerator keys in MAC !!!!

I've set accelerator keys for Refresh Action(F5) using..............
putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_F5,
0));
thought it works on pressing F5....the accelerator is not displayed alongwith the MenuItem in the menubar. : (
{ However other accelerators for which I'm setting accelerators are working fine and showing 'Comm sign' + C........say for copy.................where i did this..........
putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_C,
Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
Can Somebody suggest????....
ALso can you tell me how can i set an accelerator for Help key in MAC..which is Command Key + '?'
Actually I need the Key code for '?' key
Thanks : )

I'm sorry for editing so late...............
The problem that accelerators not showing on the menu item is on MAC.
THe problem is only when there;s not modifier like a Comm or Ctrl ....and the accelerator is just say F6......
In that case the accelerator F6 is not displayed in the menuitem as it does with modifiers...and evn on Win.

Similar Messages

  • Accelerator keys temporarily unavailable after changin JMenuBar objects

    We have an application that needs to toggle between two different JMenuBar objects depending on what the user is doing. So our primary window constructs the two menus, stores both, and switches which one it is using with setJMenuBar.
    The problem is that, on Windows, the first time we switch menus, all the accelerator keys stop working until the user takes a mouse action in the frame somewhere. If the user operates any widget (like a menu item or button), or even opens a menu but doesn't click anything, all the accelerators suddenly become available.
    Actions that DO cause the accelerators to become available:
    - A mouse click on a widget inside this frame (as long as the click is not entirely consumed by an internal element)
    - Resizing the window
    - Minimizing / restoring the window
    - Switching to another application and back
    - Simulating any such mouse click with a Robot
    Actions that DON'T cause the accelerators to become available:
    - Mouse Moves
    - Clicks on internal widgets that implement MouseListener
    - Programmatically operating widgets with doClick(), even if clicking on that widget would re-enable the accelerators
    NOTE: this seems to only affect Windows. I haven't tried it on Linux yet, but the bug does not affect Mac OS X, so it doesn't look like I'm doing anything explicitly wrong when I switch menu bars.
    Has anyone else seen this, or can you suggest a fix or workaround? My current workaround is to simulate a click on the menu bar with a Robot after the first time we switch menu bars. But that's terribly kludgy and I'd like to find a better solution.
    Thanks,
    Evan
    Edited by: IdahoEv on Jun 21, 2009 4:15 PM
    Edited by: IdahoEv on Jun 21, 2009 4:16 PM

    Has anyone else seen this,No.
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.

  • Javafx accelerator keys

    I have found information about how to setup accelerator keys, but they seem to be attached to the scene instead of the control.  This would work fine, but it seems that even when the control has been removed, replaced or even disabled the control the accelerator key still wants to fire.  Is there another way to do this, for example have the action event of a button fire when you press "CTRL-S", but only when the button is active and visible.
    Thank you

    I'm sorry for editing so late...............
    The problem that accelerators not showing on the menu item is on MAC.
    THe problem is only when there;s not modifier like a Comm or Ctrl ....and the accelerator is just say F6......
    In that case the accelerator F6 is not displayed in the menuitem as it does with modifiers...and evn on Win.

  • How to activate JMenu from other frame using accelerator key

    Hi.
    I'm developing an application for my final year project.
    i set up my application to have multiple frame open at the same time (like sunone studio in SDI mode). only one JFrame contains the JMenuBar.
    i can activate this menu bar using the accelerator key when the containing JFrame has focus. however, i donot know how to make the Menu activate when the accelerator key is pressed on other frame. press help, thanks in advance.

    does any one have some idea.
    the solution i found seem not suit my need.
    i want to be able to pull down (and get the focus transfered to) the jmenu in menubar of another frame using the menu's mnemonics. using InputMap does not seem to fit since i need to the menmonic of menu is not in the input map.

  • Where is insert key on Mac pro as in PC?

    Where is "insert" key on Mac pro as in PC

    It may be the 'fn' key based upon the following:
    http://en.wikipedia.org/wiki/Apple_Keyboard & http://en.wikipedia.org/wiki/Insert_key
    Message was edited by: musashi88

  • JTabbedPane w/ Accelerator Keys

    I need to add accelerator keys to the tabs of a JTabbedPane, much like the accelerators in a JMenuItem (i.e. under-score for Alt-F, or CTRL-X, etc...).
    Any suggestions?
    Thanks!

    It doesn't support accelerator, but it does support mnemonics. Check out the API for more information.

  • Compile for Debug accelerator key

    Hello all,
    it seems it's not possible to set an accelerator key for the "Compile for debug" command, at least I cannot find how to.
    Any ideas? If it's not possible, I would like to suggest it for a future release.
    With kind regards,
    Ronald

    It's not possible currently, you can log the request over at the exchange sqldeveloper.oracle.com
    -kris

  • Replacement Keyboard keys for Mac Book Pro 17in 2007

    I have just broken the tabs off the back of my f10 key of my macbook Pro 17 inch which I got in 2007, and was wondering is there anyway of getting a replacement key as i use f10 quite a lot in my work

    Just google your topic: "Replacement Keyboard keys for Mac Book Pro 17"

  • Accelerator key - is this a bug in Swing?

    Hello to everyone.
    I've written this Swing app which has JMenu.
    Anyway, i have set accelerator keys on most of JMenuItems but here is what is not working:
    JMenuItem exPaperXML = new JMenuItem("Paper XML");
    exPaperXML.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F10, 0));As you can see, I tried to set F10 to be accelerator key for this JMenuItem.
    It doesn't work. It doesn't fire exPaperXML.actionPerformed(..) event, but
    instead it highlights File JMenuItem (which doesn't have accelerator key set at all).
    For example, I have set F9 as accelerator key for another JMenuItem and it works fine.
    What do you think, is this a bug in Swing?
    My JDK version is 1.4.2_05
    Thanks!

    1) Read the JMenuBar API.
    2) Click on the "JMenuBar Key Assignments" link
    3) Click on "Key Java"
    4) Note how F10 is used to select the first item.camickr thank you for quick reply.
    Is there a way to override this default action?
    Thanks.

  • Keys on Mac Pro crunchy

    The keys on Mac Pro crunchy on the left side.

    what do you mean crunchy?  Like Snap - Crackle and Pop crunchy?
    did you spill any liquid in your Macbook?
    why not take it to Apple or an Authorized Repair Center and have them open up your Macbook and clean it for you if they offer it.

  • RE: (forte-users) Accelerator keys under MS Windows95/98/NT

    This message is in MIME format. Since your mail reader does not understand
    this format, some or all of this message may not be legible.
    ------_=_NextPart_001_01BEF001.9C8C0B50
    Content-Type: text/plain
    Unfortunately, ALT key is not recognized as a validkey modifier on Windows
    That isn't entirely true. The ALT key is recognized. I've used it
    successfully
    under Windows 95 and NT. The only annoying side-effect is that you get the
    standard operating system beep when you perform the keypress.
    -----Original Message-----
    From: "Ajith Kallambella" [SMTP:[email protected]]
    Sent: Thursday, August 26, 1999 1:43 PM
    To: "[email protected]" [SMTP:[email protected]];
    "[email protected]" [SMTP:[email protected]]
    Subject: Re: (forte-users) Accelerator keys under MS Windows 95/98/NT
    The Window class has a method named SetAsFunctionKey
    and an event named FunctionKeyPress. When used
    in combination, the former can be used to configure
    various accelerator keys for the window widgets
    and the latter can be used to trap them.
    For more details, take a look at Forte online help.
    Unfortunately, ALT key is not recognized as a valid
    key modifier on Windows, but is only available on
    Unix and VMS - for reasons beyond my comprehension :(
    Hope this helps
    Ajith Kallambella M.
    Forte Systems Consultant.
    From: "Burns, Troy" <[email protected]>
    To: "'[email protected]'" <[email protected]>
    Subject: (forte-users) Accelerator keys under MS Windows 95/98/NT
    Date: Thu, 26 Aug 1999 13:56:07 -0400
    Let's say I have a pushbutton on a window and I've given it
    label text of "&Search". In past developer-lives, the ampersand
    is what gives the button the ability to respond to ALT-S. This
    doesn't appear to be the case in Forte. What do I need to do
    to make this work?
    Thanks in advance,
    Troy Burns
    E-mail: [email protected]
    Marriott Vacation Club International
    941-688-7700 ext. 4408
    For the archives, go to: http://lists.sageit.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: [email protected]
    For the archives, go to: http://lists.sageit.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: [email protected]
    ------_=_NextPart_001_01BEF001.9C8C0B50
    Content-Type: text/html
    Content-Transfer-Encoding: quoted-printable
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
    <HTML>
    <HEAD>
    <DEFANGED-META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
    charset=3Dus-ascii">
    <DEFANGED-META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
    5.5.2448.0">
    <DEFANGED-TITLE>RE: (forte-users) Accelerator keys under MS Windows =
    95/98/NT</TITLE>
    </HEAD>
    <BODY>
    <P><FONT SIZE=3D2>&gt; Unfortunately, ALT key is not recognized as a =
    valid</FONT>
    <BR><FONT SIZE=3D2>key modifier on Windows</FONT>
    </P>
    <P><FONT SIZE=3D2>That isn't entirely true. The ALT key is recognized. =
    I've used it successfully</FONT>
    <BR><FONT SIZE=3D2>under Windows 95 and NT. The only annoying =
    side-effect is that you get the</FONT>
    <BR><FONT SIZE=3D2>standard operating system beep when you perform the =
    keypress.</FONT>
    </P>
    <P><FONT SIZE=3D2>-----Original Message-----</FONT>
    <BR><FONT SIZE=3D2>From: &quot;Ajith Kallambella&quot; =
    [SMTP:[email protected]] </FONT>
    <BR><FONT SIZE=3D2>Sent: Thursday, August 26, 1999 1:43 PM</FONT>
    <BR><FONT SIZE=3D2>To: &quot;[email protected]&quot; =
    [SMTP:[email protected]];</FONT>
    <BR><FONT SIZE=3D2>&quot;[email protected]&quot; =
    [SMTP:[email protected]]</FONT>
    <BR><FONT SIZE=3D2>Subject: Re: (forte-users) Accelerator keys under MS =
    Windows 95/98/NT</FONT>
    </P>
    <BR>
    <P><FONT SIZE=3D2>The Window class has a method named =
    SetAsFunctionKey</FONT>
    <BR><FONT SIZE=3D2>and an event named FunctionKeyPress. When =
    used</FONT>
    <BR><FONT SIZE=3D2>in combination, the former can be used to =
    configure</FONT>
    <BR><FONT SIZE=3D2>various accelerator keys for the window =
    widgets</FONT>
    <BR><FONT SIZE=3D2>and the latter can be used to trap them.</FONT>
    </P>
    <P><FONT SIZE=3D2>For more details, take a look at Forte online =
    help.</FONT>
    </P>
    <P><FONT SIZE=3D2>Unfortunately, ALT key is not recognized as a =
    valid</FONT>
    <BR><FONT SIZE=3D2>key modifier on Windows, but is only available =
    on</FONT>
    <BR><FONT SIZE=3D2>Unix and VMS - for reasons beyond my comprehension =
    :(</FONT>
    </P>
    <P><FONT SIZE=3D2>Hope this helps</FONT>
    </P>
    <P><FONT SIZE=3D2>Ajith Kallambella M.</FONT>
    <BR><FONT SIZE=3D2>Forte Systems Consultant.</FONT>
    </P>
    <BR>
    <P><FONT SIZE=3D2>&gt;From: &quot;Burns, Troy&quot; =
    &lt;[email protected]&gt;</FONT>
    <BR><FONT SIZE=3D2>&gt;To: &quot;'[email protected]'&quot; =
    &lt;[email protected]&gt;</FONT>
    <BR><FONT SIZE=3D2>&gt;Subject: (forte-users) Accelerator keys under MS =
    Windows 95/98/NT</FONT>
    <BR><FONT SIZE=3D2>&gt;Date: Thu, 26 Aug 1999 13:56:07 -0400</FONT>
    <BR><FONT SIZE=3D2>&gt;</FONT>
    <BR><FONT SIZE=3D2>&gt;Let's say I have a pushbutton on a window and =
    I've given it</FONT>
    <BR><FONT SIZE=3D2>&gt;label text of &quot;&amp;Search&quot;.  In =
    past developer-lives, the ampersand</FONT>
    <BR><FONT SIZE=3D2>&gt;is what gives the button the ability to respond =
    to ALT-S.  This</FONT>
    <BR><FONT SIZE=3D2>&gt;doesn't appear to be the case in Forte.  =
    What do I need to do</FONT>
    <BR><FONT SIZE=3D2>&gt;to make this work?</FONT>
    <BR><FONT SIZE=3D2>&gt;</FONT>
    <BR><FONT SIZE=3D2>&gt;Thanks in advance,</FONT>
    <BR><FONT SIZE=3D2>&gt;</FONT>
    <BR><FONT =
    SIZE=3D2>&gt;---------------------------------------------</FONT>
    <BR><FONT SIZE=3D2>&gt;Troy Burns</FONT>
    <BR><FONT SIZE=3D2>&gt;E-mail: [email protected]</FONT>
    <BR><FONT SIZE=3D2>&gt;Marriott Vacation Club International</FONT>
    <BR><FONT SIZE=3D2>&gt;941-688-7700 ext. 4408</FONT>
    <BR><FONT SIZE=3D2>&gt;</FONT>
    <BR><FONT SIZE=3D2>&gt;--</FONT>
    <BR><FONT SIZE=3D2>&gt;For the archives, go to: <A =
    HREF=3D"<a href=
    "http://lists.sageit.com/forte-users">http://lists.sageit.com/forte-users</a>" =
    TARGET=3D"_blank">http://lists.sageit.com/forte-users</A> and =
    use</FONT>
    <BR><FONT SIZE=3D2>&gt;the login: forte and the password: archive. To =
    unsubscribe, send in a new</FONT>
    <BR><FONT SIZE=3D2>&gt;email the word: 'Unsubscribe' to: =
    [email protected]</FONT>
    <BR><FONT SIZE=3D2>&gt;</FONT>
    </P>
    <BR>
    <P><FONT =
    SIZE=3D2>_______________________________________________________________=
    </FONT>
    <BR><FONT SIZE=3D2>Get Free Email and Do More On The Web. Visit <A =
    HREF=3D"<a href="http://www.msn.com">http://www.msn.com</a>" =
    TARGET=3D"_blank">http://www.msn.com</A></FONT>
    </P>
    <P><FONT SIZE=3D2>--</FONT>
    <BR><FONT SIZE=3D2>For the archives, go to: <A =
    HREF=3D"<a href=
    "http://lists.sageit.com/forte-users">http://lists.sageit.com/forte-users</a>" =
    TARGET=3D"_blank">http://lists.sageit.com/forte-users</A> and =
    use</FONT>
    <BR><FONT SIZE=3D2>the login: forte and the password: archive. To =
    unsubscribe, send in a new</FONT>
    <BR><FONT SIZE=3D2>email the word: 'Unsubscribe' to: =
    [email protected]</FONT>
    </P>
    </BODY>
    </HTML>
    ------_=_NextPart_001_01BEF001.9C8C0B50--

    Hi,Beau Leo, I am having problem installing Oracle9i Database Rel.2 on my pc.
    I read the suggestion and solution you posted for fixing Oracle 8.1.x installation
    probblem, and since my pc also hung at 48% while installing Oracle 9i software,
    I wonder if the same problem in the Oracle8 Vs.Pentium4 also exists for Oracle9i.
    I have Windows2000,256RAM, Pentium3 1Ghz, and 13.8 free diskspace. But the installation always
    hangs at 48%, my computer will just shut down and restart automatically without
    even showing an error message. I have tried installing the Enterprise edition for 3
    times already but everytime encountered the same problem. I've also tried custom installation
    by selecting not to create database, but it also hung.
    Before I started each installation, I always made sure that my registry and environment
    path are cleared and that all the partially-installed Oracle files are deleted.
    I hope that you or anyone who has a solution for this problem could be so kindly to help me out.
    Thank you in advance.
    ailee

  • Can i use 'iGetter' (a third party download accelerator) to download Mac OS X v10.7.4 update?

    can i use 'iGetter' (a third party download accelerator) to download Mac OS X v10.7.4 update? im running 10.7.2

    Third party download manangers usually end up causing problems when downloading apps from the App Store.
    Try installing the OS X Lion Update 10.7.4 (Client Combo)
    That will update your Mac to v10.7.4 but be aware that file size is 1.4 GB.
    Bear in mind, if at some point you need to reformat or repair the startup disk or reinstall the Mac OSX, you would need to use Lion Recovery which requires broadband access to the Internet via Wi-Fi or an Ethernet connection

  • HT3820 Entering a QuickTime Pro registration key in Mac OS X 10.8.2

    How to find
    Entering a QuickTime Pro registration key in Mac OS X for 10.8.2 to register Quicktime. I've BOUGHT it and can't register? It doesn't show a Quicktime in system preference?

    This is for APPLE:
    This is a peer-to-peer user forum. If you wish to ensure your message gets to Apple, please use the appropriate formal "Product Feedback" form provided on the Apple web site: http://www.apple.com/feedback/
    Apple are very lazy in giving instructions and it came with OS X v10.6 and OS X v10.5, nothing for OS X v10.7 or OS X v10.8? I've OS X v10.8.2...I'm baffled. I don't need a mind game. I just want a job done.
    The instructions found at URL http://support.apple.com/kb/HT3678 are up-to-date since they refer to QT 7 v7.6.6 which is compatible with all versions of the Mac OS X v10.6.3 and later—including Lion and Mountain Lion.

  • Returning when I press apostrophe key in Mac Mail. HELP!!! Before I lose my mind!

    When I press the apostrophe key in Mac Mail, the cursor returns to the line below. I realize that RETURN and ' are next to each other so some may say something is stuck in my keyboard. I normally would agree, however, this problem is only happening in Mac Mail. Does anyone know how to fix this?

    No, you won't. Back it up anyway; you may want to use a program such as Carbon Copy Cloner or SuperDuper to create a bootable clone on another drive.
    (70427)

  • Accelerator keys on actions

    I have a menu where i insert a lot of actions like this:
    ActionMap actions = menuBar.getActionMap();
    // fill actions with a lot of actions
    JMenu fileMenu = (JMenu) menuBar.add(new JMenu(Utils.getTextKey("menu.file")));     fileMenu.add(new JMenuItem(actions.get("action.save")));
    Each action has:
    - ACCELERATOR_KEY
    - DEFAULT
    - SMALL_ICON
    values set, and they show up in the menu with icon and a pretty shortcut with another color. But the accelerator keys doesn't work.
    So I try to make a InputMap:
    InputMap inputs = menuBar.getInputMap(JPanel.WHEN_IN_FOCUSED_WINDOW);
    for (int i = 0; i < actionList.length; i++) {
    String name = (String) actionList.getValue(Action.DEFAULT);
    actions.put(name, actionList[i]);
    inputs.put((KeyStroke) actionList[i].getValue(Action.ACCELERATOR_KEY), name);
    The accelerator keys still doesn't work!
    The MenuBar is inside a JPanel that is inside the main JPanel.
    The rest of the application is inside a lot of JPanels and JTabs and others.
    How is this supposed to work?

    Yeah, I tried that too...
    JCheckBoxMenuItem gridToggle = new JCheckBoxMenuItem(actions.get("action.grid_toggle"));
    gridToggle.setAccelerator((KeyStroke)actions.get("action.grid_toggle").getValue(Action.ACCELERATOR_KEY));
    gridMenu.add(gridToggle);
    I even tried to give the JMenuItem another KeyStroke thos way, overriding the action, and the menu had the last kaystroke, but doesn't work.
    Is there any magic that has to be initialized on the outermost frame or something to make those accelerators work?

Maybe you are looking for

  • HP Mini 110 bios is asking for a password after MoBo battery got unplugged !!??

    I just got the "suprise-we-gave-you-bios-password" error after I was trying to fix a hard drive & keyboard for a HP Mini 110 1116ca.  The on-board battery got unpluged and now it asks for a bios password.. grrrr! Why does HP do this!!??  re-seating a

  • Character decoding

    For character decoding an incoming message , I am retrieving the text string from a bodypart and character-decoding it using the "charset" obtained from body part. Then I am creating a new body part with this decoded string . Then I am removing the o

  • Photoshop cs5 update has deleted 64bit version

    Running this mornings 12/14/10 updates has lead to the deletion of Photoshop cs5 64bit.I have the 32bit version but cannot point any of my files to this through the file association default settings. I am running on Windows 7. I also cannot change th

  • Error loading elements 11 tried to uninstall to reinstall error

    Premiere 11 loaded fine but not the photoshop 11 & it was missing the enhance panoramic merge option.  So I have tried to uninstall but error message keeps popping up.  Want to reinstall Elements 11.  Help please

  • Video Menu in Encore 2.0

    Hey all,    I'm trying to put video as the background of my menu for a dvd using Encore 2.0.  I've split my video into two parts, the first playing as a 'first play' timeline and then going into a looped menu that I created in AE.   I've linked and a