Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using my own Look&Feel

 
josef vavra
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Using WinNt, JDK 1.3.0
I managed to make my own L&F called DAT.My2LookAndFeel (extends MetalLookAndFeel)but have one problem. To make it work correctly, I have to put my .class file into rt.jar.
When I put it just somewhere on the classpath, it doesn't work well, producing this message: (but the .class file was found, because the message from constructor appeared correctly)
Problem creating DAT.My2LookAndFeel with method getControlTextFont and args { :
java.lang.ClassNotFoundExce
tion: DAT/My2LookAndFeel
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Thread.java:993)
at
javax.swing.UIDefaults$ProxyLazyValue.createValue(UIDefaults.java:670)
at javax.swing.UIDefaults.get(UIDefaults.java:145)
at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java:46)
at javax.swing.UIDefaults.getFont(UIDefaults.java:223)
at javax.swing.UIManager.getFont(UIManager.java:456)
at javax.swing.LookAndFeel.installColorsAndFont(LookAndFeel.java:90)
at
javax.swing.plaf.basic.BasicButtonUI.installDefaults(BasicButtonUI.java:127)
at
com.sun.java.swing.plaf.windows.WindowsButtonUI.installDefaults(WindowsButtonUI.java:65)
at
javax.swing.plaf.basic.BasicButtonUI.installUI(BasicButtonUI.java:63)
at javax.swing.JComponent.setUI(JComponent.java:325)
at javax.swing.AbstractButton.setUI(AbstractButton.java:1310)
at javax.swing.JButton.updateUI(JButton.java:118)
at javax.swing.AbstractButton.init(AbstractButton.java:1605)
WHAT AM I DOING BAD ?? DID I MISS something ?? Or is there a switch for java.exe telling additional place whereto lok for runtime classes ??
Thanx for any help
Josef Vavra
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic