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.


>> REGISTER NOW TO START POSTING


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

Results 1 to 15 of 15

Thread: Look and Feel not working.

  1. #1
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default [SOLVED]: Look and Feel not working.

    Hello everyone!!!

    I am actually developing a desktop application and for that purpose i am using Synthetica Look and Feel. Well, it's much better for me to state here exactly the theme of Synthetica i am using. I am using Synthetica Black Eye look and feel.

    The problem is when i run my application it actually doesn't apply the look and feel and executes the catch part of try-catch. I am getting sick of this exception. Finally i planned to ask you guys for help.

    The code i am writing in the constuctor part is;
    public TestGUI() {
         try
        {
          UIManager.setLookAndFeel(new SyntheticaBlackEyeLookAndFeel());
        } 
        catch (Exception e)
        {
          e.printStackTrace();
        }
            loadComponents(); // Initiates all the swing components.
        }

    And when i run, it gives exception;

    java.lang.RuntimeException: java.lang.ClassNotFoundException: de.javasoft.plaf.synthetica.SyntheticaDefaultTable CellEditor
    at de.javasoft.plaf.synthetica.StyleFactory.getStyle( StyleFactory.java:907)
    at de.javasoft.plaf.synthetica.StyleFactory.getStyle( StyleFactory.java:174)
    at javax.swing.plaf.synth.SynthLookAndFeel.getStyle(S ynthLookAndFeel.java:210)
    at javax.swing.plaf.synth.SynthLookAndFeel.updateStyl e(SynthLookAndFeel.java:266)
    at javax.swing.plaf.synth.SynthTableUI.updateStyle(Sy nthTableUI.java:113)
    at javax.swing.plaf.synth.SynthTableUI.installDefault s(SynthTableUI.java:97)
    at javax.swing.plaf.basic.BasicTableUI.installUI(Basi cTableUI.java:1351)
    at javax.swing.JComponent.setUI(JComponent.java:662)
    at javax.swing.JTable.setUI(JTable.java:3574)
    at javax.swing.JTable.updateUI(JTable.java:3633)
    at javax.swing.JTable.<init>(JTable.java:615)
    at javax.swing.JTable.<init>(JTable.java:540)
    at de.javasoft.plaf.synthetica.SyntheticaLookAndFeel. installCompatibilityDefaults(SyntheticaLookAndFeel .java:747)
    at de.javasoft.plaf.synthetica.SyntheticaLookAndFeel$ 2.propertyChange(SyntheticaLookAndFeel.java:345)
    at java.beans.PropertyChangeSupport.firePropertyChang e(PropertyChangeSupport.java:339)
    at javax.swing.event.SwingPropertyChangeSupport.fireP ropertyChange(SwingPropertyChangeSupport.java:75)
    at java.beans.PropertyChangeSupport.firePropertyChang e(PropertyChangeSupport.java:276)
    at javax.swing.UIManager.setLookAndFeel(UIManager.jav a:523)
    at watchyourpet.MainFrame.<init>(MainFrame.java:27)
    at watchyourpet.MainFrame$1.run(MainFrame.java:203)
    at java.awt.event.InvocationEvent.dispatch(Invocation Event.java:209)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.j ava:641)
    at java.awt.EventQueue.access$000(EventQueue.java:84)
    at java.awt.EventQueue$1.run(EventQueue.java:602)
    at java.awt.EventQueue$1.run(EventQueue.java:600)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectio nPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java: 611)
    at java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:122)
    Caused by: java.lang.ClassNotFoundException: de.javasoft.plaf.synthetica.SyntheticaDefaultTable CellEditor
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 47)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at de.javasoft.plaf.synthetica.StyleFactory.getStyle( StyleFactory.java:903)
    ... 33 more
    Thanks for reading the thread. I am hoping some help from you guys.
    Last edited by Mr.777; November 14th, 2011 at 11:06 PM.


  2. #2
    Member
    Join Date
    Nov 2011
    Posts
    37
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: Look and Feel not working.

    Hi,
    The error is because of the not getting the appropriate jar in library/classpath.

    Core java
    Last edited by mr.miku; January 11th, 2012 at 06:11 PM.

  3. #3
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Look and Feel not working.

    I have downloaded the synthetica.jar and synthetica blackeye.jar from JYLOO software (Jyloo Software)

  4. #4
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Look and Feel not working.

    Did you properly configure your program to find the appropriate jar files? Simply having the jar files != configuring your program to find/use them.

  5. #5
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Look and Feel not working.

    Yes, i properly configured synthetica and synthetica black eye jar files. And now i have got one other clue and that is, synthetica blackeye is not allowed to use with non commercial applications. So, i want to ask, if it's a problem for my application?

  6. #6
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Look and Feel not working.

    I want you all to look over here too. May be i misunderstood something.
    Synthetica Themes
    When you open this page, see
    Synthetica BlackEye Look and Feel
    Thanks alot.

  7. #7
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 286 Times in 225 Posts
    Blog Entries
    4

    Default Re: Look and Feel not working.

    Have you checked Figure 1 of the FAQ?

    Synthetica - Java Look And Feel
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

    Looking for a Java job? Visit - Java Programming Careers

  8. #8
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Look and Feel not working.

    Quote Originally Posted by JavaPF View Post
    Have you checked Figure 1 of the FAQ?

    Synthetica - Java Look And Feel
    Are you directing me to this figure?
    try
    {
    UIManager.setLookAndFeel("de.javasoft.plaf.synthet ica.SyntheticaStandardLookAndFeel");
    //Another way is to use the #setLookAndFeel method of the SyntheticaLookAndFeel class
    //SyntheticaLookAndFeel.setLookAndFeel(String className, boolean antiAlias, boolean useScreenMenuOnMac);
    }
    catch (Exception e)
    {
    e.printStackTrace();
    }
    If yes, it will not actually change anything and yes, i have changed it like this but same problem. As it's only the path to the .jar, while i have been imported in my code above.

  9. #9
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 286 Times in 225 Posts
    Blog Entries
    4

    Default Re: Look and Feel not working.

    What IDE do you use?
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

    Looking for a Java job? Visit - Java Programming Careers

  10. #10
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Look and Feel not working.

    Netbeans 6.9.1

    Well, everyone thanks. Problem has been solved. I will discuss here in a while about the whole process.

    Thanks

  11. #11
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Look and Feel not working.

    Read My Blog for one of the possible solutions.

  12. #12
    Junior Member
    Join Date
    Oct 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Look and Feel not working.

    Quote Originally Posted by Mr.777 View Post
    Netbeans 6.9.1

    Well, everyone thanks. Problem has been solved. I will discuss here in a while about the whole process.

    Thanks

    ^^^^^Hey iam using blackeyelookandfeel and iam getting all dese exceptions. Could you please help me how to fix it?

  13. #13
    Junior Member
    Join Date
    Oct 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Look and Feel not working.

    java.lang.reflect.InvocationTargetException
    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!!!!

  14. #14
    Junior Member
    Join Date
    Oct 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Look and Feel not working.

    java.lang.reflect.InvocationTargetException
    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!!!!

  15. #15
    Super Moderator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,102
    Thanks
    169
    Thanked 779 Times in 725 Posts
    Blog Entries
    5

    Default Re: Look and Feel not working.

    Quote Originally Posted by vidya426 View Post
    ^^^^^Hey iam using blackeyelookandfeel and iam getting all dese exceptions. Could you please help me how to fix it?
    Please don't resurrect a year old post. Create a new thread, and I'd recommend reading the link in my signature entitled 'Getting Help' prior to doing so.

Similar Threads

  1. How do I change Look and Feel in Window Builder?
    By Zorobay in forum AWT / Java Swing
    Replies: 1
    Last Post: May 3rd, 2011, 09:08 PM
  2. Default system look and feel does not work
    By goodguy in forum What's Wrong With My Code?
    Replies: 3
    Last Post: April 5th, 2011, 11:46 PM
  3. Feel like I'm overthinking this problem.
    By miketeezie in forum What's Wrong With My Code?
    Replies: 2
    Last Post: February 22nd, 2011, 07:02 AM
  4. Look & Feel
    By Asido in forum AWT / Java Swing
    Replies: 3
    Last Post: September 10th, 2010, 09:13 PM
  5. Replies: 2
    Last Post: October 14th, 2009, 10:10 AM

Tags for this Thread