Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

View RSS Feed


Look and Feel ToolBar solution.

Rating: 2 votes, 4.50 average.
This solution is written coz of the problem i have faced for almost a week and after a huge panic, i came to find an alternate solution to solve the problem.
The problem is Java Synthetica BlackEye Look and Feel with the desktop application. Well, if you try to place a tool bar over your desktop application, you will
never be able to see LAF(Look and Feel) effect over it. You will most probably get even more confused if you will see the effect on the menu items. Well, what is the actual problem? Toolbar exists outside the JPanel and you can never put them on it. But you can put them on JFrame and JFrame seems not getting the LAF effect in any case.

So, what you do is, place a jDesktopPane on your JFrame and then apply toolbars to it. You will see the LAF effect over the menus as well now. Remember one thing, for Synthetica BlackEye Look and Feel, you need to have Synthetica V2.9 or above and SyntheticaBatik V1.0. If you will download the Synthetica V2.14(latest for now), you will get SyntheticaBatik in it.

Configure the API's in your application and import them.
Write this code;
 UIManager.setLookAndFeel(new SyntheticaBlackEyeLookAndFeel());
 catch (Exception e) {
in the place where you want to apply this look and feel.
If you get any exception coz of this code like ClassNotFound, remember you have downloaded the older version of Synthetica, so download Synthetica latest version (recommonded) or atleast the version, specified by the LAF theme.

If there are any suggestions, feed back, comments, please post. I will appreciate the other solutions of applying LAF to toolbars other than this, if you know kindly comment.



  1. JavaPF's Avatar
    Thanks for clearing this up.
  2. Mr.777's Avatar
    You are welcome JavaPF. And if anyone has any problem with implementing this solution, kindly comment here or leave a PM to me.

  3. Mr.777's Avatar
    Quote Originally Posted by vidya426
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at de.javasoft.plaf.synthetica.SyntheticaLookAndFeel. updateWindowShape(SyntheticaLookAndFeel.java:2429)
    at de.javasoft.plaf.synthetica.SyntheticaLookAndFeel. updateAllWindowShapes(SyntheticaLookAndFeel.java:2 447)
    at de.javasoft.plaf.synthetica.SyntheticaLookAndFeel. access$3(SyntheticaLookAndFeel.java:2439)
    at de.javasoft.plaf.synthetica.SyntheticaLookAndFeel$ 4.propertyChange(SyntheticaLookAndFeel.java:702)
    at java.beans.PropertyChangeSupport.fire(PropertyChan geSupport.java:335)
    at java.beans.PropertyChangeSupport.firePropertyChang e(PropertyChangeSupport.java:327)
    at javax.swing.event.SwingPropertyChangeSupport.fireP ropertyChange(SwingPropertyChangeSupport.java:92)
    at java.beans.PropertyChangeSupport.firePropertyChang e(PropertyChangeSupport.java:263)
    at javax.swing.UIManager.setLookAndFeel(UIManager.jav a:541)
    at editor.<init>(editor.java:24)
    at editor.main(editor.java:49)
    Caused by: java.awt.IllegalComponentStateException: The frame is decorated
    at java.awt.Frame.setShape(Frame.java:973)
    ... 15 more

    these are the exceptions that im getting
    please help!!!!
    I have dwnloaded the latest version and configured the jar files properly...still the look and feel isnt working
    please help !!!
    This is not the complete Exception Trace... Kindly name the jars you have added with your java version and specs etc.... Also, paste the full Trace here.