File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes please help with LOOK AND FEEL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "please help with LOOK AND FEEL" Watch "please help with LOOK AND FEEL" New topic

please help with LOOK AND FEEL

Ana Mihailescu

Joined: Apr 26, 2001
Posts: 29
Hi all,
I have a strage problem with a look and feel.
I have my own look and feel class, and when I update de UI for a tabbed pane component, I get very strange exceptions. The most strage thing is that a long time worked, and now doesn't work anymore.
Here is the piece of code where I change the look and feel:
try { otto= new;

} catch (Exception ex) {
System.err.println ("Could not swap LookAndFeel: ChatLNF");
And this is the error that I get in the Java Console:
UIDefaults.getUI() failed: no ComponentUI class for: javax.swing.JTabbedPane[,10,20,500x320,layout=javax.swing.plaf.metal.MetalTabbedPaneUI$TabbedPaneLayout,alignmentX=null,alignmentY=null,border=,flags=1408,maximumSize=,minimumSize= ,preferredSize=,haveRegistered=false,tabPlacement=TOP]
at javax.swing.UIDefaults.getUIError(Unknown Source)
at javax.swing.UIDefaults.getUI(Unknown Source)
at javax.swing.UIManager.getUI(Unknown Source)
at javax.swing.JTabbedPane.updateUI(Unknown Source)
What could it be ? Please help !
neel kum

Joined: Mar 13, 2004
Posts: 1
Did you find what happened
I am also finding the same problem ....urgent...
UIDefaults.getUI() failed: no ComponentUI class for: javax.swing.JScrollPane$ScrollBar[,0,0,0x0,invalid,alignmentX=null,alignmentY=null,border=,flags=1,maximumSize=,minimumSize=,preferredSize=,blockIncrement=10,orientation=VERTICAL,unitIncrement=1]
at javax.swing.UIDefaults.getUIError(
at javax.swing.UIDefaults.getUI(
at javax.swing.UIManager.getUI(
at javax.swing.JScrollBar.updateUI(
at javax.swing.JScrollBar.<init>(
at javax.swing.JScrollBar.<init>(
at javax.swing.JScrollPane$ScrollBar.<init>(
at javax.swing.JScrollPane.createVerticalScrollBar(
at javax.swing.JScrollPane.<init>(
at javax.swing.plaf.basic.BasicComboPopup.createScroller(
at javax.swing.plaf.basic.BasicComboPopup.<init>(
at javax.swing.plaf.metal.MetalComboBoxUI$MetalComboPopup.<init>(
at javax.swing.plaf.metal.MetalComboBoxUI.createPopup(
at javax.swing.plaf.basic.BasicComboBoxUI.installUI(
at javax.swing.plaf.metal.MetalComboBoxUI.installUI(
at javax.swing.JComponent.setUI(
at javax.swing.JComboBox.setUI(
at javax.swing.JComboBox.updateUI(
at javax.swing.JComboBox.init(
at javax.swing.JComboBox.<init>(
at tradingscreen.client.gui.root.TSClock.<init>(
at tradingscreen.client.gui.root.TSClock.getTSClock(
at tradingscreen.client.gui.TSMenuPanel.setupStatusPanel(
at tradingscreen.client.gui.TSMenuPanel.<init>(
at tradingscreen.client.gui.TSApplicationManager.<init>(
at tradingscreen.client.gui.TSApplicationManager.getInstance(
at tradingscreen.client.TradingScreenApp.initTsApplicationManager(
at tradingscreen.client.TradingScreenApp.initApp(
at tradingscreen.client.TradingScreenApp.<init>(
at tradingscreen.client.TradingScreenApp.main(
at test.client.testhelpers.LoginTestHelper.initApp(
at test.testscripting.engine.RunnableScript.testRun(
at java.lang.reflect.Method.invoke(Native Method)
at junit.extensions.jfcunit.JFCTestCase$ Source)
at junit.extensions.jfcunit.JFCTestCase$ Source)
I agree. Here's the link:
subject: please help with LOOK AND FEEL
It's not a secret anymore!