Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.awt.Component;
import java.awt.Cursor;

public class Main {
    public static void setBusyCursor(Component comp, boolean busy) {
        if (busy) {
            comp.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
        } else {
            comp.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
        }
    }
}