java.lang.Error

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

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1313

  • via Oracle Community by 807582, 1 year ago
    setAccelerator() is not defined for JMenu. Use setMnemonic() instead.
  • via Oracle Community by 807577, 11 months ago
    setAccelerator() is not defined for JMenu. Use setMnemonic() instead.
  • via GitHub by mvmn
    , 10 months ago
    This method is obsolete, use getFieldOrder() instead
  • Stack trace

    • java.lang.Error: setAccelerator() is not defined for JMenu. Use setMnemonic() instead. at javax.swing.JMenu.setAccelerator(JMenu.java:1348) at ApplicationFrame.<init>(ApplicationFrame.java:72) at MainFrame.main(MainFrame.java:11)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.