Lines Matching refs:choice
28 @author Oleg Pekhovskiy: area=awt-choice
49 Choice choice = new Choice();
59 choice.add(i.toString());
62 choice.addItemListener(new ItemListener() {
67 choice.addMouseWheelListener(new MouseWheelListener() {
80 add(choice);
90 Point pt = choice.getLocationOnScreen();
91 Dimension size = choice.getSize();
95 // Test mouse wheel over the choice
98 // mouse wheel doesn't work for the choice on X11 and Mac, so skip it
105 throw new RuntimeException("Mouse Wheel over the choice failed!");
125 y -= choice.getHeight() / 2;
129 robot.mouseWheel(choice.getItemCount()); // wheel to the last item
139 if(!itemChanged || choice.getSelectedIndex() != choice.getItemCount() - 1) {