< prev index next >

src/demo/share/jfc/J2Ddemo/java2d/demos/Colors/BullsEye.java

Print this page

        

@@ -1,8 +1,8 @@
 /*
  *
- * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
  *

@@ -51,11 +51,11 @@
     }
 
     @Override
     public void render(int w, int h, Graphics2D g2) {
 
-        Color reds[] = { RED.darker(), RED };
+        Color[] reds = { RED.darker(), RED };
         for (int N = 0; N < 18; N++) {
             float i = (N + 2) / 2.0f;
             float x = (5 + i * (w / 2 / 10));
             float y = (5 + i * (h / 2 / 10));
             float ew = (w - 10) - (i * w / 10);

@@ -68,9 +68,9 @@
             }
             g2.fill(new Ellipse2D.Float(x, y, ew, eh));
         }
     }
 
-    public static void main(String s[]) {
+    public static void main(String[] s) {
         createDemoFrame(new BullsEye());
     }
 }
< prev index next >