< prev index next >
src/demo/share/jfc/J2Ddemo/java2d/CloningFeature.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:
*
@@ -159,11 +159,11 @@
Thread.sleep(3333);
} catch (Exception e) {
return;
}
- Component cmps[] = dg.clonePanels[0].getComponents();
+ Component[] cmps = dg.clonePanels[0].getComponents();
for (int i = 0; i < cmps.length && thread != null; i++) {
if ((dp = (DemoPanel) cmps[i]).tools == null) {
continue;
}
switch (i) {
< prev index next >