< prev index next >
src/demo/share/jfc/SwingSet2/TabbedPaneDemo.java
Print this page
@@ -1,8 +1,8 @@
/*
*
- * Copyright (c) 2007, 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:
*
@@ -147,23 +147,23 @@
}
class HeadSpin extends JComponent implements ActionListener {
javax.swing.Timer animator;
- ImageIcon icon[] = new ImageIcon[6];
+ ImageIcon[] icon = new ImageIcon[6];
int tmpScale;
static final int numImages = 6;
- double x[] = new double[numImages];
- double y[] = new double[numImages];
+ double[] x = new double[numImages];
+ double[] y = new double[numImages];
- int xh[] = new int[numImages];
- int yh[] = new int[numImages];
+ int[] xh = new int[numImages];
+ int[] yh = new int[numImages];
- double scale[] = new double[numImages];
+ double[] scale = new double[numImages];
public HeadSpin() {
setBackground(Color.black);
icon[0] = createImageIcon("tabbedpane/ewan.gif", getString("TabbedPaneDemo.ewan"));
icon[1] = createImageIcon("tabbedpane/stephen.gif", getString("TabbedPaneDemo.stephen"));
< prev index next >