public class setCursor implements Testlet
{
public void test(TestHarness harness)
{
TestList l = new TestList(new String[]{"item"});
TestList.AccessibleTestList al =
(TestList.AccessibleTestList) l.getAccessibleContext();
AccessibleComponent child = (AccessibleComponent) al.getAccessibleChild(0);
Cursor cursor = l.getCursor();
child.setCursor(Cursor.getPredefinedCursor(Cursor.CROSSHAIR_CURSOR));
harness.check(l.getCursor(), cursor);
harness.check(child.getCursor(),
Cursor.getPredefinedCursor(Cursor.CROSSHAIR_CURSOR));
child.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
harness.check(l.getCursor(), cursor);
harness.check(child.getCursor(),
Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
}