jdk/test/sanity/client/lib/SwingSet3/src/com/sun/swingset3/demos/tabbedpane/TabbedPaneDemo.java
equal
deleted
inserted
replaced
202 } |
202 } |
203 */ |
203 */ |
204 } |
204 } |
205 |
205 |
206 public void go() { |
206 public void go() { |
207 animator = new javax.swing.Timer(22 + 22 + 22, this); |
207 if (animator == null) { |
|
208 animator = new javax.swing.Timer(22 + 22 + 22, this); |
|
209 } |
208 animator.start(); |
210 animator.start(); |
209 } |
211 } |
210 |
212 |
211 @Override |
213 @Override |
212 public void paint(Graphics g) { |
214 public void paint(Graphics g) { |
244 } |
246 } |
245 } |
247 } |
246 |
248 |
247 @Override |
249 @Override |
248 public void actionPerformed(ActionEvent e) { |
250 public void actionPerformed(ActionEvent e) { |
249 if (isVisible()) { |
251 if (isShowing()) { |
250 repaint(); |
252 repaint(); |
251 } else { |
253 } else { |
252 animator.stop(); |
254 animator.stop(); |
253 } |
255 } |
254 } |
256 } |