< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/metal/MetalBumps.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -222,11 +222,11 @@
             image = gc.createCompatibleImage(IMAGE_SIZE, IMAGE_SIZE,
                        (backColor != MetalBumps.ALPHA) ? Transparency.OPAQUE :
                        Transparency.BITMASK);
         }
         else {
-            int cmap[] = { backColor.getRGB(), topColor.getRGB(),
+            int[] cmap = { backColor.getRGB(), topColor.getRGB(),
                            shadowColor.getRGB() };
             IndexColorModel icm = new IndexColorModel(8, 3, cmap, 0, false,
                       (backColor == MetalBumps.ALPHA) ? 0 : -1,
                       DataBuffer.TYPE_BYTE);
             image = new BufferedImage(IMAGE_SIZE, IMAGE_SIZE,
< prev index next >