SynthLookAndFeel ?

Swing Designer allows you to quickly create the frames, panels, dialogs, applets and other UI elements that comprise Java Swing applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

SynthLookAndFeel ?

Postby kleist » Wed Aug 18, 2004 8:18 am

When trying to add the new "Synth" look-and-feel (J2SE 5.0 beta 2) on the preferences page (Designer > Swing > Look and Feel) I get an exception:

Code: Select all
!ENTRY com.swtdesigner 4 4 Aug 18, 2004 18:09:20.734
!MESSAGE Designer internal error: (javax/swing/plaf/synth/SynthLookAndFeel) bad major version at offset=6
!STACK 0
java.lang.UnsupportedClassVersionError: (javax/swing/plaf/synth/SynthLookAndFeel) bad major version at offset=6
   at java.lang.Throwable.<init>(Throwable.java)
   at java.lang.Throwable.<init>(Throwable.java)
   at java.lang.UnsupportedClassVersionError.<init>(UnsupportedClassVersionError.java:51)
   at java.lang.ClassLoader.defineClassImpl(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java)
   at java.net.URLClassLoader.access$400(URLClassLoader.java)
   at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java)
   at java.security.AccessController.doPrivileged(AccessController.java:218)
   at java.net.URLClassLoader.findClass(URLClassLoader.java)
   at java.lang.ClassLoader.loadClass(ClassLoader.java)
   at java.lang.ClassLoader.loadClass(ClassLoader.java)
   at com.swtdesigner.actions.laf.LAFInfo.getInstance(SourceFile:43)
   at com.swtdesigner.actions.laf.LookAndFeelContributionItem.setLookAndFeel(SourceFile:147)
   at com.swtdesigner.actions.laf.LookAndFeelContributionItem.updateDefaultSystemLookAndFeel(SourceFile:143)
   at com.swtdesigner.editors.MultiPageEditor.createPartControl(SourceFile:151)

...


I do realize that this is bleeding edge, I have absolutely no right to except that Swing Designer supports this beta version. But nevertheless: Is support for this exciting LAF planned for?

Thanks.
Karl Johan Kleist
Systems Analyst, Kleist IT Consulting, Sweden
kleist
 
Posts: 5
Joined: Fri Aug 13, 2004 2:43 am
Location: Trelleborg, Sweden

Re: SynthLookAndFeel ?

Postby Eric Clayberg » Wed Aug 18, 2004 9:12 am

kleist wrote:When trying to add the new "Synth" look-and-feel (J2SE 5.0 beta 2) on the preferences page (Designer > Swing > Look and Feel) I get an exception:

Code: Select all
!ENTRY com.swtdesigner 4 4 Aug 18, 2004 18:09:20.734
!MESSAGE Designer internal error: (javax/swing/plaf/synth/SynthLookAndFeel) bad major version at offset=6
!STACK 0
java.lang.UnsupportedClassVersionError: (javax/swing/plaf/synth/SynthLookAndFeel) bad major version at offset=6
   at java.lang.Throwable.<init>(Throwable.java)
   at java.lang.Throwable.<init>(Throwable.java)
   at java.lang.UnsupportedClassVersionError.<init>(UnsupportedClassVersionError.java:51)
   at java.lang.ClassLoader.defineClassImpl(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java)
   at java.net.URLClassLoader.access$400(URLClassLoader.java)
   at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java)
   at java.security.AccessController.doPrivileged(AccessController.java:218)
   at java.net.URLClassLoader.findClass(URLClassLoader.java)
   at java.lang.ClassLoader.loadClass(ClassLoader.java)
   at java.lang.ClassLoader.loadClass(ClassLoader.java)
   at com.swtdesigner.actions.laf.LAFInfo.getInstance(SourceFile:43)
   at com.swtdesigner.actions.laf.LookAndFeelContributionItem.setLookAndFeel(SourceFile:147)
   at com.swtdesigner.actions.laf.LookAndFeelContributionItem.updateDefaultSystemLookAndFeel(SourceFile:143)
   at com.swtdesigner.editors.MultiPageEditor.createPartControl(SourceFile:151)

...


I do realize that this is bleeding edge, I have absolutely no right to except that Swing Designer supports this beta version. But nevertheless: Is support for this exciting LAF planned for?

You can use any Look & Feel you want, but you need to make sure that the JRE used to run the IDE supports the Look & Feel you want to use. The above error indicates a mismatch caused by using an earlier JRE. Designer runs within the IDE, so the IDE itself needs to be able to load any custom classes you want use. You might be able to use the -vm startup option to specify a more recent JRE. Another alternative might be to get the source for the SynthLookAndFeel class and compile it using the JRE you are using to run the IDE.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to Swing Designer

Who is online

Users browsing this forum: Google [Bot] and 1 guest