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

Oracle Community | 807577 | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded 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