Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

please help with LOOK AND FEEL

Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 !
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic