Searched refs:buttons (Results 1 - 25 of 29) sorted by relevance

12

/openjdk10/jdk/test/sanity/client/lib/jemmy/src/org/netbeans/jemmy/drivers/buttons/
H A Dpackage-info.java30 package org.netbeans.jemmy.drivers.buttons;
H A DButtonMouseDriver.java23 package org.netbeans.jemmy.drivers.buttons;
/openjdk10/jdk/src/java.desktop/share/classes/java/awt/peer/
H A DRobotPeer.java55 * @param buttons the button mask
59 void mousePress(int buttons); argument
64 * @param buttons the button mask
68 void mouseRelease(int buttons); argument
/openjdk10/jdk/src/java.desktop/share/classes/sun/swing/
H A DWindowsPlacesBar.java53 JToggleButton[] buttons; field in class:WindowsPlacesBar
86 buttons = new JToggleButton[files.length];
114 buttons[i] = new JToggleButton(folderName, icon);
116 buttons[i].putClientProperty("XPStyle.subAppName", "placesbar");
119 buttons[i].setContentAreaFilled(false);
120 buttons[i].setForeground(fgColor);
122 buttons[i].setMargin(new Insets(3, 2, 1, 2));
123 buttons[i].setFocusPainted(false);
124 buttons[i].setIconTextGap(0);
125 buttons[
[all...]
/openjdk10/jdk/src/java.desktop/share/classes/javax/swing/
H A DButtonGroup.java34 * a set of buttons. Creating a set of buttons with the
36 * turning "on" one of those buttons
37 * turns off all other buttons in the group.
51 * Initially, all buttons in the group are unselected.
73 * The list of buttons participating in this group.
75 protected Vector<AbstractButton> buttons = new Vector<AbstractButton>(); field in class:ButtonGroup
95 buttons.addElement(b);
116 buttons.removeElement(b);
124 * Clears the selection such that none of the buttons
[all...]
/openjdk10/jdk/test/java/awt/GridLayout/ComponentPreferredSize/
H A DComponentPreferredSize.java50 private Button[] buttons; field in class:ComponentPreferredSize
68 buttons = new Button[componentCount];
70 buttons[i] = new Button("Button" + i);
71 buttons[i].setPreferredSize(new Dimension((int) Math.random() * 100,
73 frame.add(buttons[i]);
74 buttons[i].addActionListener((event) -> {actionPerformed = true;});
150 for (int i = 0; i < buttons.length; i++) {
151 if (buttons[i].getSize().width != componentWidth ||
152 buttons[i].getSize().height != componentHeight) {
157 "Actual: " + buttons[
[all...]
/openjdk10/jdk/test/java/awt/GridLayout/ChangeGridSize/
H A DChangeGridSize.java50 private Button[] buttons; field in class:ChangeGridSize
68 buttons = new Button[componentCount];
70 buttons[i] = new Button("Button" + i);
71 frame.add(buttons[i]);
72 buttons[i].addActionListener( (event) -> { actionPerformed = true; });
158 for (int i = 0; i < buttons.length; i++) {
159 if (buttons[i].getSize().width != componentWidth ||
160 buttons[i].getSize().height != componentHeight) {
165 "Actual: " + buttons[i].getSize().width + "*" + buttons[
[all...]
/openjdk10/jdk/src/jdk.editpad/share/classes/jdk/editpad/
H A DEditPad.java97 jframe.add(buttons(closer, textArea), BorderLayout.SOUTH);
103 private JPanel buttons(Runnable closer, JTextArea textArea) { method in class:EditPad
106 JPanel buttons = new JPanel(flow);
107 addButton(buttons, "editpad.cancel", KeyEvent.VK_C, e -> {
110 addButton(buttons, "editpad.accept", KeyEvent.VK_A, e -> {
113 addButton(buttons, "editpad.exit", KeyEvent.VK_X, e -> {
117 return buttons;
120 private void addButton(JPanel buttons, String rkey, int mnemonic, ActionListener action) { argument
123 buttons.add(but);
/openjdk10/jdk/src/java.desktop/macosx/classes/sun/lwawt/macosx/
H A DCRobot.java41 // mouse move events. This means that we have to track buttons state
73 * Presses one or more mouse buttons.
75 * @param buttons the button mask (combination of
79 public void mousePress(int buttons) { argument
80 mouseButtonsState |= buttons;
83 buttons, true, false);
87 * Releases one or more mouse buttons.
89 * @param buttons the button mask (combination of
93 public void mouseRelease(int buttons) { argument
94 mouseButtonsState &= ~buttons;
[all...]
/openjdk10/jdk/src/java.desktop/unix/classes/sun/awt/X11/
H A DXRobotPeer.java83 public void mousePress(int buttons) { argument
84 mousePressImpl(buttons);
88 public void mouseRelease(int buttons) { argument
89 mouseReleaseImpl(buttons);
126 private static synchronized native void mousePressImpl(int buttons); argument
127 private static synchronized native void mouseReleaseImpl(int buttons); argument
H A DXFileDialogPeer.java104 Panel buttons; field in class:XFileDialogPeer
168 buttons = new Panel();
169 buttons.setLayout(gblButtons);
274 // add buttons to GridBagLayout Buttons
276 GridBagConstraints.WEST, (Container)buttons,
279 GridBagConstraints.CENTER, (Container)buttons,
282 GridBagConstraints.EAST, (Container)buttons,
286 addComponent(buttons, gbl, gbc, 0, 9, 2,
H A DXWindow.java606 for (int i = 0; i < XConstants.buttons.length; i ++){
609 // 2) if Xsystem reports that "state" represents that button was just released. This only happens on RELEASE with 1,2,3 buttons.
611 if (((state & XlibUtil.getButtonMask(i + 1)) != 0) != (button == XConstants.buttons[i])){
612 //exclude wheel buttons from adding their numbers as modifiers
613 if (!isWheelMouse || !isWheel(XConstants.buttons[i])) {
622 // 4 and 5 buttons are usually considered assigned to a first wheel
623 return button == XConstants.buttons[3] || button == XConstants.buttons[4];
667 * Ignore the buttons above 20 due to the bit limit for
717 button = XConstants.buttons[lbutto
[all...]
H A DXWindowPeer.java2193 // here is the bug in WM: extra buttons doesn't have state!=0 as they should.
2244 * Ignore the buttons above 20 due to the bit limit for
2270 && xbe.get_button() == XConstants.buttons[0])
2275 && xbe.get_button() == XConstants.buttons[0]
2310 if ((xbe.get_button() != XConstants.buttons[3])
2311 && (xbe.get_button() != XConstants.buttons[4])) {
2337 } else if ((xbe.get_button() != XConstants.buttons[3])
2338 && (xbe.get_button() != XConstants.buttons[4])) {
2350 } else if ((xbe.get_button() != XConstants.buttons[3])
2351 && (xbe.get_button() != XConstants.buttons[
[all...]
/openjdk10/jdk/src/java.desktop/windows/classes/sun/awt/windows/
H A DWRobotPeer.java54 public native void mousePress(int buttons); argument
56 public native void mouseRelease(int buttons); argument
/openjdk10/jdk/test/javax/swing/JScrollBar/bug4202954/
H A Dbug4202954.java66 // test right, left and middle mouse buttons for horizontal scroll bar
77 // test right, left and middle mouse buttons for vertical scroll bar
133 public static void clickMouseOnComponent(Component c, int buttons) throws Exception { argument
136 robot.mousePress(buttons);
137 robot.mouseRelease(buttons);
139 public static boolean doTest(JButton scrollButton, int buttons, boolean expectScroll) throws Exception { argument
157 clickMouseOnComponent(scrollButton, buttons);
/openjdk10/jdk/test/javax/swing/regtesthelpers/
H A DJRobot.java145 * @param buttons mouse button(s).
148 public void clickMouse(int buttons) { argument
149 mousePress(buttons);
150 mouseRelease(buttons);
164 * @param buttons mouse button(s).
166 public void clickMouseOn(Component c, int buttons) { argument
168 clickMouse(buttons);
/openjdk10/jdk/src/java.desktop/share/classes/java/awt/
H A DRobot.java207 * Presses one or more mouse buttons. The mouse buttons should
210 * @param buttons the Button mask; a combination of one or more
213 * It is allowed to use only a combination of valid values as a {@code buttons} parameter.
222 * <li> If support for extended mouse buttons is
227 * <li> If support for extended mouse buttons is
230 * and masks for existing extended mouse buttons, if the mouse has more then three buttons.
231 * In that way, it is allowed to use the button masks corresponding to the buttons
248 * @throws IllegalArgumentException if the {@code buttons} mas
258 mousePress(int buttons) argument
315 mouseRelease(int buttons) argument
321 checkButtonsArgument(int buttons) argument
[all...]
/openjdk10/jdk/test/lib/testlibrary/
H A DExtendedRobot.java129 * @param buttons The button mask; a combination of one or more mouse button masks.
130 * @throws IllegalArgumentException if the {@code buttons} mask contains the mask for
131 * extra mouse button and support for extended mouse buttons is
133 * @throws IllegalArgumentException if the {@code buttons} mask contains the mask for
135 * mouse buttons is {@link Toolkit#areExtraMouseButtonsEnabled() enabled}
144 public void click(int buttons) { argument
145 mousePress(buttons);
147 mouseRelease(buttons);
154 * @throws IllegalArgumentException if the {@code buttons} mask contains the mask for
155 * extra mouse button and support for extended mouse buttons i
[all...]
/openjdk10/jdk/test/java/awt/event/MouseEvent/MouseButtonsTest/
H A DMouseButtonsTest.java44 * number when the mouse buttons are pressed and getModifiers()
176 int buttons[] = new int[]{
235 assertEquals(buttonPressedNumber, buttons[i]);
236 assertEquals(buttonReleasedNumber, buttons[i]);
241 System.out.println("button " + buttons[i] + " - passed");
/openjdk10/jdk/test/java/awt/event/MouseEvent/MouseButtonsAndKeyMasksTest/
H A DMouseButtonsAndKeyMasksTest.java47 * keys Ctrl, Alt, Shift, Meta and mouse buttons sequentially
172 int buttons[] = new int[]{
229 for (int b = 0; b < buttons.length; ++b) {
231 int btn = buttons[b];
/openjdk10/jdk/test/javax/swing/JPopupMenu/4966112/
H A Dbug4966112.java122 private static void clickMouse(int buttons) { argument
123 robot.mousePress(buttons);
124 robot.mouseRelease(buttons);
/openjdk10/jdk/src/java.desktop/windows/native/libawt/windows/
H A Dawt_Robot.cpp389 JNIEnv * env, jobject self, jint buttons)
393 AwtRobot::GetRobot(self)->MousePress(buttons);
399 JNIEnv * env, jobject self, jint buttons)
403 AwtRobot::GetRobot(self)->MouseRelease(buttons);
388 Java_sun_awt_windows_WRobotPeer_mousePress( JNIEnv * env, jobject self, jint buttons) argument
398 Java_sun_awt_windows_WRobotPeer_mouseRelease( JNIEnv * env, jobject self, jint buttons) argument
/openjdk10/jdk/test/sanity/client/lib/SwingSet3/src/com/sun/swingset3/demos/togglebutton/
H A DToggleButtonDemo.java128 private final List<JButton> buttons = new ArrayList<>(); field in class:ToggleButtonDemo
133 private List<? extends JComponent> currentControls = buttons;
389 if (currentControls == buttons) {
527 currentControls = buttons;
/openjdk10/jdk/test/sanity/client/lib/jemmy/src/org/netbeans/jemmy/drivers/
H A DAPIDriverInstaller.java28 import org.netbeans.jemmy.drivers.buttons.ButtonMouseDriver;
H A DDefaultDriverInstaller.java28 import org.netbeans.jemmy.drivers.buttons.ButtonMouseDriver;

Completed in 238 milliseconds

12