Lines Matching refs:choice
28 @author andrei.dmitriev area=awt.choice
55 Choice choice = new Choice();
62 choice.addItem("Item Item Item " + i);
64 choice.addItemListener(this);
66 choice.select(INITIAL_ITEM);
67 choice.setFont(new Font("Courier", Font.BOLD + Font.ITALIC, 100));
69 add(choice, BorderLayout.CENTER);
78 // fix for 6175418. When we take "choice.getHeight()/2"
81 // smaller value choice.getHeight()/i. 4 is sufficient.
82 Point pt = choice.getLocationOnScreen();
84 mouseMoveAndPressOnChoice(pt.x + choice.getWidth()/2,
85 pt.y + choice.getHeight()/4);
88 mouseMoveAndPressOnChoice(pt.x + choice.getWidth()/2,
89 pt.y + choice.getHeight()/2);
92 mouseMoveAndPressOnChoice(pt.x + choice.getWidth()/2,
93 pt.y + choice.getHeight()*3/4);
113 System.out.println("choice.stateChanged = "+ ie);
124 //should close choice after each test stage
130 Point pt = choice.getLocationOnScreen();
131 robot.mouseMove(pt.x + choice.getWidth() - choice.getHeight()/4,
132 pt.y + choice.getHeight()/2);
145 if (choice.getSelectedIndex() != INITIAL_ITEM) {
146 System.out.println("choice.getSelectedIndex = "+ choice.getSelectedIndex());