Results 1 to 3 of 3

Thread: Java Menu Help

  1. #1
    73challenger is offline Member
    Join Date
    Dec 2009
    Posts
    1
    Rep Power
    0

    Default Java Menu Help

    Hello,
    I am trying to make a program I wrote in my java class more "mac friendly". My problem is my accelerators only work when I pull down the JMenu the JMenuItem is in. I am running this in snow leopard with JavaSe-1.6 VM. They are working like mnemonics more than shortcuts.... Thanks a lot!

    Here is a example...
    about = new JMenuItem("About");
    about.setAccelerator(KeyStroke.getKeyStroke(KeyEve nt.VK_A((Toolkit.getDefaultToo
    lkit().getMenuShortcutMask()))));
    JMenu help = new JMenu("Help");
    help.add(about);

  2. #2
    camickr is online now Senior Member
    Join Date
    Jul 2009
    Posts
    1,233
    Rep Power
    7

    Default

    If you need more help post your SSCCE that shows the problem.

    And don't forget to use the "Code" tags so the posted code is readable.

  3. #3
    Join Date
    Dec 2009
    Posts
    1
    Rep Power
    0

    Default calling a method..

    AudioProxy audio = KivoxFactory.getProxyFactory().createAudioProxy("1 234-1234");


    can u define me getProxyFactory().createAudioProxy("1234-1234"); what is the meaning of this.
    and can we call a method using another method..

Similar Threads

  1. Java Menu Problem
    By Valhallon in forum AWT / Swing
    Replies: 2
    Last Post: 09-09-2009, 04:35 AM
  2. Replies: 0
    Last Post: 07-07-2008, 04:47 PM
  3. React to menu action and checkbox menu
    By Java Tip in forum javax.swing
    Replies: 0
    Last Post: 06-27-2008, 07:50 PM
  4. Replies: 7
    Last Post: 05-09-2008, 07:54 AM
  5. how to create a menu bar in java
    By tommy in forum New To Java
    Replies: 1
    Last Post: 08-05-2007, 07:43 AM

Posting Permissions

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