KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > fractal > swing > WaitGlassPane


1 /**
2  * copyright area
3  */

4
5 package org.objectweb.fractal.swing;
6
7 import java.awt.event.MouseAdapter JavaDoc;
8 import java.awt.event.MouseEvent JavaDoc;
9 import java.awt.Cursor JavaDoc;
10
11 import javax.swing.JComponent JavaDoc;
12
13 public class WaitGlassPane extends JComponent JavaDoc {
14
15   public WaitGlassPane () {
16     addMouseListener(new MouseAdapter JavaDoc() {
17       public void mouseEntered (MouseEvent JavaDoc e) {
18         setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
19       }
20     });
21   }
22 }
23
Popular Tags