Warn.gif not found ...

Hi,

I've written my own LookAndFeel only for changing the colors of my interfaces (COLOR_PRIMARY1 ... etc.).

If I open a warning message in my application, Java throws the warning "Warn.gif not found" ... but it shows the right (standard) icon.

How can I tell Java, to use the standard icons and not to throw an warning?

Thx.

[365 byte] By [HomersSon2] at [2007-9-30 3:24:10]
# 1
Your .gif is obviously not where it is supposed to be. Try and check out how you are calling the image file.
omegaNetwork at 2007-6-29 13:56:40 > top of Java-index,Archived Forums,Socket Programming...
# 2
I call the .gif indirectly by:JOptionPane.showOptionDialog(null, "Error xyz","Error",JOptionPane.YES_OPTION,JOptionPane.WARNING_MESSAGE,null,new String[]{"Ok"},"Ok");But I never redifined the constants or anything else.
HomersSon2 at 2007-6-29 13:56:40 > top of Java-index,Archived Forums,Socket Programming...
# 3

Hi guys

I have the same darn problem!!!!!!!!!!!!!!! i created my own look and feel class "lkfl1", extended from MetalLookAndFeel class. I'm only changing the "initSystemColorDefaults", the other two init methods: i do super.init..... but when i do a warning po-up just like this dude, i'm getting the following error:

lkfl1/icons/Warn.gif not found

And i aint getting a icon in my dialog either!!!!!!!!!!!!!!! help plz

371Stud at 2007-6-29 13:56:40 > top of Java-index,Archived Forums,Socket Programming...