Skip to main content

Cursor Change After BusyPainter

No replies
JewelBocks
Offline
Joined: 2011-03-12
Points: 0

Resize cursors for my JFrame no longer work after Busy painter is used.
public void setBusyLockableState(boolean busy) {
if(busy) {
if(this.busyLockableUI == null) {
this.busyLockableUI = new BusyPainterUI();
}

if((this.layer.getUI() != this.busyLockableUI) || (this.layer.getUI() == null)) {
this.layer.setUI(this.busyLockableUI);
}
}

this.busyLockableUI.setLocked(busy);
if(busy == false) {
if(this.layer.getUI() == this.busyLockableUI) {
this.layer.setUI(null);

}
}
}