UIDefaults.getUI() failed for JInternalFrame$JDesktopIcon
- From: "Ike" <rxv@xxxxxxxxxxx>
- Date: Fri, 27 Jan 2006 17:49:52 GMT
I am using a particular Look and Feel, and a class derived from
JInternalFrame. Whenever the JInternalFrame class is invoked, it generated
an exception (please see stack trace at the bottom of this message).
I know that to correct this exception, I must do something along the lines
of the following:
UIManager.put(XXX, YYY);// Where XXX is the String used to identify the
JInternalFrame$JDesktopIcon's UIand YYY the ui class for it.
However, I do not know how to go about discerning the values for XXX and
YYY. How can I find those out? I have tried:
UIManager.getLookAndFeelDefaults().put("ClassLoader",
getClass().getClassLoader());
UIManager.put("JDesktopIcon",
javax.swing.JInternalFrame.JDesktopIcon.class.getName());
UIManager.put("JInternalFrame",
javax.swing.JInternalFrame.class.getName());
updateUI();
With no luck at al. Can someone please help me to find out what parameters I
need to pass here? Thanks, Ike
--------stack trace-----------------------
UIDefaults.getUI() failed: no ComponentUI class for:
javax.swing.JInternalFrame$JDesktopIcon[,0,0,0x0,invalid,hidden,alignmentX=0
..0,alignmentY=0.0,border=,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 javax.swing.JInternalFrame$JDesktopIcon.updateUI(Unknown Source)
at javax.swing.JInternalFrame$JDesktopIcon.<init>(Unknown Source)
at javax.swing.JInternalFrame.<init>(Unknown Source)
at RalphVince.Controls.JScrollableDesktopPane.BaseInternalFrame.<init>()
.
- Follow-Ups:
- Re: UIDefaults.getUI() failed for JInternalFrame$JDesktopIcon
- From: Vova Reznik
- Re: UIDefaults.getUI() failed for JInternalFrame$JDesktopIcon
- Prev by Date: Re: SWT conflict with PLAF?
- Next by Date: Re: FileSystemView Icon Size
- Previous by thread: how to make jsplitpane without a slider
- Next by thread: Re: UIDefaults.getUI() failed for JInternalFrame$JDesktopIcon
- Index(es):
Relevant Pages
|
|