Skip to main content

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

  • From: <chriscalyx@...>
  • To: dev@...
  • Subject: UIDefaults.getUI() failed: no ComponentUI class for:
  • Date: Fri, 19 Apr 2013 14:05:00 +0000 (GMT)

Hi,

I've been using Substance skin for about 4 years and it's great, all
our customers love the look and feel.
I recently used a 3rd party DatePicker in my Swing application. My code
sits under the following path

ROOT]/net

the DatePicker sits under

[ROOT]/com

the main class resides under a path in the net package.

This works fine in my IDE (Eclipse). When I compile it and make an
executable jar file I get the following error at run time.

UIDefaults.getUI() failed: no ComponentUI class for:
com.michaelbaranov.microba.
calendar.DatePicker[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,bord
er=,flags
=0,maximumSize=,minimumSize=,preferredSize=]
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
com.michaelbaranov.microba.common.MicrobaComponent.updateUI(MicrobaCo
mponent.java:42)
        at
com.michaelbaranov.microba.calendar.CalendarPane.<init>(CalendarPane.
java:195)
        at
com.michaelbaranov.microba.calendar.DatePicker.<init>(DatePicker.java
:120)
        at
net.acme.client.swing.SchedulerController.getTimePosPanel(Schedul
erController.java:208)
        at
net.acme.client.swing.SchedulerController.init(SchedulerControlle
r.java:294)
        at
net.acme.client.swing.SchedulerController.<init>(SchedulerControl
ler.java:176)
        at net.acme.client.swing.AcmeClient.initComponents(acmeClien
t.java:822)
        at net.acme.client.swing.AcmeClient.access$5000(AcmeClient.j
ava:130)
        at net.acme.client.swing.AcmeClient$31.run(AcmeClient.java:3
474)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$200(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at
java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown
Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown
Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown
Source)
        at java.awt.WaitDispatchSupport$2.run(Unknown Source)
        at java.awt.WaitDispatchSupport$4.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.WaitDispatchSupport.enter(Unknown Source)
        at java.awt.Dialog.show(Unknown Source)
        at java.awt.Component.show(Unknown Source)
        at java.awt.Component.setVisible(Unknown Source)
        at java.awt.Window.setVisible(Unknown Source)
        at java.awt.Dialog.setVisible(Unknown Source)
        at net.acme.client.swing.AcmeClient$105.run(AcmeClient.java:
4926)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$200(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at
java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown
Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown
Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)


I can see it's something to do with the UIDefaults. I've had a look
through the michaelbaranov.microba to see if it overrides any of the
calls to do with the UIManager but I can't see anything obvious. 

Appreciate any help?

Thanks


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

chriscalyx 04/19/2013
 
 
Close
loading
Please Confirm
Close