< prev index next >

src/java.desktop/windows/classes/com/sun/java/swing/plaf/windows/WindowsScrollBarUI.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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

@@ -411,11 +411,11 @@
             }
             return grid;
         }
 
         public Grid(Color fg, Color bg) {
-            int cmap[] = { fg.getRGB(), bg.getRGB() };
+            int[] cmap = { fg.getRGB(), bg.getRGB() };
             IndexColorModel icm = new IndexColorModel(8, 2, cmap, 0, false, -1,
                                                       DataBuffer.TYPE_BYTE);
             image = new BufferedImage(BUFFER_SIZE, BUFFER_SIZE,
                                       BufferedImage.TYPE_BYTE_INDEXED, icm);
             Graphics g = image.getGraphics();
< prev index next >