Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

7U25: UIDefaults.getUI() failed: no ComponentUI class for:

946128Jun 19 2013 — edited Jun 28 2013

Several of my users have reported this error after upgrading to Java 7 Update 25:

UIDefaults.getUI() failed: no ComponentUI class for: Javax.swing.JMenu[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=0,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,disabledSelectedIcon=,margin=null,paintBorder=false,paintFocus=false,pressedIcon=,rolloverEnabled=false,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=]

java.lang.Error

  at javax.swing.UIDefaults.getUIError(Unknown Source)

  at javax.swing.MultiUIDefaults.getUIError(Unknown Source)

  at javax.swing.UIDefaults.getUI(Unknown Source)

  at javax.swing.UIManager.getUI(Unknown Source)

  at javax.swing.JMenu.updateUI(Unknown Source)

  at javax.swing.JMenuItem.init(Unknown Source)

  at javax.swing.JMenuItem.<init>(Unknown Source)

  at javax.swing.JMenuItem.<init>(Unknown Source)

  at javax.swing.JMenu.<init>(Unknown Source)

  at javax.swing.JMenu.<init>(Unknown Source)

...

when creating a JMenu like this: final JMenu submenu = new JMenu();

The application has not changed (and works fine on 7U21) and only some of the users experience this.

After restarting the application it seems to run correctly.

The are running on Windows 7

Anyone else seen this error on 7U25?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 26 2013
Added on Jun 19 2013
25 comments
28,018 views