You could just subclass the windows look and feel and return true rather than
changing it.  this way you do not have to distribute your own versions of the class
files (which I am pretty sure is against the licensing agreement)

Michael Schubart wrote:

> > I have download the swing-1.1 package from javasoft and I installed it on my
> > Linux box with jdk-1.1.7-v1a and native_threads. I run the SwingSet and when I
> > try to change to the Windows Look & Feel it gives me an
> > unsupportedLookAndFeelException. Does it works for you?
> >
>
> Hi Yago,
>
> try this:
>
>   1 Unzip Swing's src.zip.
>   2 Edit com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java
>   3 Change the implementation of
>       isSupportedLookAndFeel()
>     from
>       return isNativeLookAndFeel();
>     to
>       return true;
>     (This is in line 78 or so.)
>   4 Compile WindowsLookAndFeel.java
>   5 Update swingall.jar and windows.jar
>
> Of course this will only let you use the Windows PLAF on your
> own Linux machine. And don't ask me about the legal
> implications.
>
> Good luck,
> Michael
>
> +---------------------------------------------------------------+
> | Michael Schubart                            [EMAIL PROTECTED] |
> |    PGP public key at http://www.best.com/~schubart/pgp.txt    |
> +---------------------------------------------------------------+

Reply via email to