Meaningless Drivel is fun!*
The moose likes Swing / AWT / SWT and the fly likes Swing substance not 'skinning' entire frame. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Swing substance not Watch "Swing substance not New topic

Swing substance not 'skinning' entire frame.

Kevin P Smith
Ranch Hand

Joined: Feb 18, 2005
Posts: 362
Hi guys,

I have just started looking at developing a Swing app and found the 'substance' JAR and how it can change the LAF of an application. I have found a couple of sample app and coied their way of working, but whilst the sample apps appear to have then entire app skinned (titlebar, border etc) for me I only get the main window (panel) buttons, menus etc. The titlebar wtays in the traditional Windows look.

Here is the code of my Main.class that calls my app and skins it. It appears the same as the samples of the substance wewbsite, so I can't figure out why it's not working.
It's using substance.jar 5.3

Thanks in advance

Kevin P Smith
Ranch Hand

Joined: Feb 18, 2005
Posts: 362
isn't it always the case, that 1 minute after posting an issue you've had all day and you find the solution!!!

Adding these just after the UIManager line sorted it:-

wood burning stoves
subject: Swing substance not 'skinning' entire frame.
Similar Threads
Multiple javaw.exe instances created while creating swing components
Separating form code in a JFrame Class
Swing File Error: error "NoSuchMethordError".
JFrame in a JFrame?
Look and Feel