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
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 { :
tion: DAT/My2LookAndFeel
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(
at javax.swing.UIDefaults.get(
at javax.swing.MultiUIDefaults.get(
at javax.swing.UIDefaults.getFont(
at javax.swing.UIManager.getFont(
at javax.swing.LookAndFeel.installColorsAndFont(
at javax.swing.JComponent.setUI(
at javax.swing.AbstractButton.setUI(
at javax.swing.JButton.updateUI(
at javax.swing.AbstractButton.init(
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