java.lang.Error: setAccelerator() is not defined for JMenu. Use setMnemonic() instead.

Oracle Community | 807577 | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Run time error creating JMenu

    Oracle Community | 1 decade ago | 807577
    java.lang.Error: setAccelerator() is not defined for JMenu. Use setMnemonic() instead.
  2. 0

    JMenu does not support setAccelerator ?

    Oracle Community | 2 decades ago | 807582
    java.lang.Error: setAccelerator() is not defined for JMenu. Use setMnemonic() instead.

    Root Cause Analysis

    1. java.lang.Error

      setAccelerator() is not defined for JMenu. Use setMnemonic() instead.

      at javax.swing.JMenu.setAccelerator()
    2. Java RT
      JMenu.setAccelerator
      1. javax.swing.JMenu.setAccelerator(JMenu.java:1348)
      1 frame
    3. Unknown
      MainFrame.main
      1. ApplicationFrame.<init>(ApplicationFrame.java:72)
      2. MainFrame.main(MainFrame.java:11)
      2 frames