I can successfully set a WAIT cursor if using the Windows look & feel. This has no effect in the cross-platform look & feel - is it not implemented?

Curtis Hatter

The following code works in all of the standard look and feel libraries. It should work in third party L&Fs as well.

import java.awt.*;
import javax.swing.*;

public class WaitCursorFrame extends JFrame {
    public WaitCursorFrame() {
        JLabel text = new JLabel("Testing wait cursor");
        this.getContentPane().add(text, "North");
        text.setCursor(new Cursor(Cursor.WAIT_CURSOR));
    public static void main(String[] args) {
        WaitCursorFrame frame = new WaitCursorFrame();

Note this has been tested in Java 2 v1.2.2 and v1.3.0 from Sun.

Just move the cursor over the label and it will change to the wait cursor.

This works for me to set the cursor to the wait cursor (or any cursor, even your own custom cursor if you like)