has anyone gotten this exception using SkinLF?  
Author Message
anikkar@gmail.com





PostPosted: 2005-10-28 1:26:00 Top

java-programmer, has anyone gotten this exception using SkinLF? I get the following exception when loading certain skins with SkinLF

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at
com.l2fprod.gui.plaf.skin.impl.gtk.GtkSeparator.getPreferredSize(GtkSeparator.java:92)
at
com.l2fprod.gui.plaf.skin.CompoundSkin$CompoundSeparator.getPreferredSize(CompoundSkin.java:961)
at
com.l2fprod.gui.plaf.skin.SkinSeparatorUI.getPreferredSize(SkinSeparatorUI.java:84)


It only happens when i try and load certain dialogs, and I'm not sure
which dialogs it happens it. I can try and come up with a small example
if no one has seen this before. (An example of a skin this occurs with
is: b0sumiErgothemepack.zip)

thanks!

 
Roedy Green





PostPosted: 2005-10-28 15:16:00 Top

java-programmer >> has anyone gotten this exception using SkinLF? On 27 Oct 2005 10:26:12 -0700, "email***@***.com" <email***@***.com>
wrote, quoted or indirectly quoted someone who said :

>com.l2fprod.gui.plaf.skin.impl.gtk.GtkSeparator.getPreferredSize(GtkSeparator.java:92)
> at

Is there any possibility this L&F is for Linux only?
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
 
Rainer Schwarze





PostPosted: 2005-10-28 18:54:00 Top

java-programmer >> has anyone gotten this exception using SkinLF? Roedy Green wrote:
> On 27 Oct 2005 10:26:12 -0700, "email***@***.com" <email***@***.com>
> wrote, quoted or indirectly quoted someone who said :
>
>
>>com.l2fprod.gui.plaf.skin.impl.gtk.GtkSeparator.getPreferredSize(GtkSeparator.java:92)
>> at
>
>
> Is there any possibility this L&F is for Linux only?

I just checked it and it works on my Windows 2000 machine.

I am currently playing around with themepacks for SkinLF and noticed,
that a lot of them are a little bit "unclean". The rc files reference
image files which are not there and I got a lot of exceptions when
loading different themes because of that. Most themes work despite those
exceptions.

In the sources I can look at right now the line of your exception is
responsible for determining the height of the "hline-file". If you now
look in the gtk/gtkrc file from that themepack you can find a section
for HLINE and that refers to a file hline.png and that in turn is not
present in the themepack.

Fixing the themepack seems to be the best solution to me. (Providing
some default behaviour for SkinLF would be another solution, but well,
the themepack should be ok in the first place...)

Best wishes,
Rainer
--
Rainer Schwarze (Mr.) -- remove .nospam for email
 
 
anikkar@gmail.com





PostPosted: 2005-11-3 1:35:00 Top

java-programmer >> has anyone gotten this exception using SkinLF? Hi Rainer,

I was wondering if it would be possible for you to send me the
"cleaned" up themepacks that you have touched. I figure there isn't
much point in fixing the same themepacks you have done.

thanks!

 
 
Rainer Schwarze





PostPosted: 2005-11-12 23:01:00 Top

java-programmer >> has anyone gotten this exception using SkinLF? email***@***.com wrote:
> Hi Rainer,
>
> I was wondering if it would be possible for you to send me the
> "cleaned" up themepacks that you have touched. I figure there isn't
> much point in fixing the same themepacks you have done.
>
> thanks!
>

Hi,

sorry for the late reply - was a little distracted.
I was digging into the "deeps" while creating my own themepack, so
basically I only produced a clean own themepack. I did not need to fix
the others.

Best wishes,
Rainer
--
Rainer Schwarze (Mr.) -- remove .nospam for email