[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;
Code :
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;
Quote:
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.
Re: Look and Feel not working.
Hi,
The error is because of the not getting the appropriate jar in library/classpath.
Core java
Re: Look and Feel not working.
I have downloaded the synthetica.jar and synthetica blackeye.jar from JYLOO software (Jyloo Software)
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.
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?
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
Quote:
Synthetica BlackEye Look and Feel
Thanks alot.
Re: Look and Feel not working.
Have you checked Figure 1 of the FAQ?
Synthetica - Java Look And Feel
Re: Look and Feel not working.
Quote:
Originally Posted by
JavaPF
Are you directing me to this figure?
Quote:
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.
Re: Look and Feel not working.
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
Re: Look and Feel not working.
Read My Blog for one of the possible solutions.
Re: Look and Feel not working.
Quote:
Originally Posted by
Mr.777
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?
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!!!!
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!!!!
Re: Look and Feel not working.
Quote:
Originally Posted by
vidya426
^^^^^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.