Java Cursor S_RESIZE_CURSOR
Syntax
Cursor.S_RESIZE_CURSOR has the following syntax.
public static final int S_RESIZE_CURSOR
Example
In the following code shows how to use Cursor.S_RESIZE_CURSOR field.
import java.awt.Cursor;
/* w w w . j av a 2s .c om*/
import javax.swing.JFrame;
public class Main {
public static void main(String[] args) {
JFrame aWindow = new JFrame();
aWindow.setBounds(200, 200, 200, 200);
aWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
aWindow.setCursor(Cursor.getPredefinedCursor(Cursor.S_RESIZE_CURSOR));
aWindow.setVisible(true);
}
}
Home »
Java Tutorial »
java.awt »
Java Tutorial »
java.awt »