This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

please help with LOOK AND FEEL

Ana Mihailescu
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic