-
Bug
-
Resolution: Fixed
-
P4
-
1.3.0
-
beta
-
sparc
-
solaris_2.6
Name: mgC56079 Date: 11/10/99
javax.swing.plaf.metal.MetalBorders.getDesktopIconBorder() throws NullPointerExcpetion,
but specification says that this method should return border instance for Desctop Icon.
Example:
import javax.swing.plaf.metal.*;
import javax.swing.plaf.metal.MetalBorders;
import javax.swing.border.Border;
class Test {
public static void main(String args[]) {
Border jdiResult = MetalBorders.getDesktopIconBorder();
if (!(jdiResult instanceof Border && jdiResult != null)) {
System.out.print("getDesktopIconBorder works wrong");
}
System.out.print("OKAY");
}
}
Result:
Exception in thread "main" java.lang.NullPointerException
at
javax.swing.plaf.metal.MetalLookAndFeel.getControlDarkShadow(MetalLookAndFeel.java:1078)
at javax.swing.plaf.metal.MetalBorders.getDesktopIconBorder(MetalBorders.java:552)
at Test.main(test.java:7)
Excepted:
OKAY
======================================================================