The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Use setCursor ( new Cursor ( Cursor... ) )

Posted by Kishori Sharan on January 18, 2001 at 9:52 PM

Cursor class is in java.awt package.

////////Test.java

import java.applet.* ;
import java.awt.* ;


public class ReadFile extends Applet {
Button readFile = new Button ( "Read File" ) ;
public void init ( ) {
add ( readFile ) ;
readFile.setCursor ( new Cursor ( Cursor.WAIT_CURSOR ) ) ;
setCursor ( new Cursor ( Cursor.WAIT_CURSOR ) ) ;

}
}



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us