1.1 --- a/samples/extensibleicon/src/org/apidesign/extensibleicon/Icon2Image.java Sat Jun 14 09:58:08 2008 +0200
1.2 +++ b/samples/extensibleicon/src/org/apidesign/extensibleicon/Icon2Image.java Sat Jun 14 09:58:11 2008 +0200
1.3 @@ -12,7 +12,11 @@
1.4 if (img != null) {
1.5 return img;
1.6 }
1.7 - BufferedImage buf = new BufferedImage(icon.getIconWidth(), icon.getIconHeight(), BufferedImage.TYPE_INT_RGB);
1.8 + BufferedImage buf = new BufferedImage(
1.9 + icon.getIconWidth(),
1.10 + icon.getIconHeight(),
1.11 + BufferedImage.TYPE_INT_RGB
1.12 + );
1.13 icon.paintIcon(null, buf.getGraphics(), 0, 0);
1.14 return buf;
1.15 }