Searched defs:button (Results 26 - 50 of 71) sorted by relevance

123

/openjdk7/jdk/test/java/awt/FileDialog/FileDialogReturnTest/
H A DFileDialogReturnTest.java59 " 1. The test shows the 'FileDialogReturnTest' applet which contains two text fields and one button, ",
62 " 4. Press the 'Show' button and a file dialog will appear, ",
65 " 5-2. Select any file, e.g. by pressing the 'OK' button, ",
74 final Button button = new Button("Show"); field in class:FileDialogReturnTest
84 add(button);
86 button.addActionListener(new ActionListener() {
/openjdk7/jdk/test/java/awt/Focus/WindowInitialFocusTest/
H A DWindowInitialFocusTest.java42 Button button = new Button("button"); field in class:WindowInitialFocusTest
66 window.add(button);
/openjdk7/jdk/test/java/awt/KeyboardFocusmanager/TypeAhead/ButtonActionKeyTest/
H A DButtonActionKeyTest.java27 @summary Action key pressed on a button should be swallowed.
43 JButton button = new JButton("button"); field in class:ButtonActionKeyTest
67 frame.add(button);
71 button.getInputMap().put(KeyStroke.getKeyStroke("A"), "GO!");
72 button.getActionMap().put("GO!", new AbstractAction() {
94 Util.clickOnComp(button, robot);
97 if (!button.isFocusOwner()) {
98 throw new Error("Test error: a button didn't gain focus.");
/openjdk7/jdk/test/java/awt/Robot/ManualInstructions/
H A DManualInstructions.java114 "choosing the button number to act and ",
125 private int getMask(int button){ argument
126 return InputEvent.getMaskForButton(button);
131 switch (button){
/openjdk7/jdk/src/share/classes/sun/tools/jconsole/inspector/
H A DXOperations.java163 void performInvokeRequest(final JButton button) { argument
164 final OperationEntry entryIf = operationEntryTable.get(button);
168 return mbean.invoke(button.getText(),
180 fireChangedNotification(OPERATION_INVOCATION_EVENT, button, result);
183 button,
194 button,
196 button.getText() + " : " + t.toString(),
H A DXTextField.java51 private JButton button; field in class:XTextField
74 JButton button,
77 this.button = button;
160 operation.performInvokeRequest(button);
70 XTextField(Object value, Class<?> expectedClass, int colWidth, boolean isCallable, JButton button, XOperations operation) argument
/openjdk7/jdk/test/javax/swing/JMenuItem/6209975/
H A Dbug6209975.java44 private static JButton button; field in class:bug6209975
87 Point p = button.getLocationOnScreen();
88 Dimension size = button.getSize();
115 button = new JButton("Focus holder");
116 frame.add(button);
/openjdk7/jdk/test/javax/swing/JTree/4330357/
H A Dbug4330357.java42 private static JButton button; field in class:bug4330357
118 Point p = button.getLocationOnScreen();
119 Dimension size = button.getSize();
153 button = new JButton("stop");
155 button.addActionListener(new ActionListener() {
163 frame.getContentPane().add(button, BorderLayout.SOUTH);
/openjdk7/jdk/src/share/classes/javax/swing/plaf/metal/
H A DMetalComboBoxUI.java171 JButton button = new MetalComboBoxButton( comboBox,
176 button.setMargin( new Insets( 0, 1, 1, 3 ) );
179 button.putClientProperty(MetalBorders.NO_BUTTON_ROLLOVER,
182 updateButtonForOcean(button);
183 return button;
189 private void updateButtonForOcean(JButton button) { argument
193 button.setFocusPainted(comboBox.isEditable());
212 MetalComboBoxButton button = (MetalComboBoxButton)arrowButton;
213 button.setIconOnly( comboBox.isEditable() ||
/openjdk7/jdk/src/macosx/classes/sun/lwawt/
H A DPlatformEventNotifier.java51 void notifyMouseEvent(int id, long when, int button, argument
/openjdk7/jdk/test/java/awt/Mouse/EnterExitEvents/
H A DDragWindowOutOfFrameTest.java56 private static JButton button; field in class:DragWindowOutOfFrameTest
97 button.addMouseListener(new ButtonMouseListener());
98 return getCenterPoint(button);
120 "Wrong number Mouse Entered/Exited events on button!");
128 "Wrong number Mouse Entered/Exited events on button!");
158 button = new JButton("Button");
162 panel.add(button, BorderLayout.CENTER);
/openjdk7/jdk/test/java/awt/Mouse/MouseModifiersUnitTest/
H A DModifierPermutation.java11 The test will try to press-release every button present on the mouse in different order.
38 //all button masks
122 // use this variable to get current button on EDT in checkModifiers()
130 System.out.println("Pressing button = " + array[i]);
141 System.out.println("Releasing button = " + array[i]);
163 public static void dumpValues(int button, int modifiers, int modifiersStandard, int modifiersEx, int modifiersExStandard){ argument
164 System.out.println("Button = "+button + "Modifiers = "+ modifiers + " standard = "+ modifiersStandard);
H A DMouseModifiersUnitTest_Extra.java46 int button = event.getButton();
49 int index = (button - 4)*3;
50 dumpValues(button, modifiers, modifiersStandard, modifiersEx, curStandardExModifiers[index]);
63 checkButton(paramStringElements, button);
64 checkModifiers(testModifier, paramStringElements, button);
65 checkExtModifiersOnPress(testModifier, paramStringElements, button);
68 public static void checkExtModifiersOnReleaseClick(int testModifier, HashMap h, int button){ argument
93 public static void checkExtModifiersOnPress(int testModifier, HashMap h, int button){ argument
109 ethalon = ethalon + "Button" +button;
116 public static void checkModifiers(int testModifier, HashMap<String, String> h, int button){ argument
123 checkButton(HashMap<String, String> h, int button) argument
335 dumpValues(int button, int modifiers, int modifiersStandard, int modifiersEx, int modifiersExStandard) argument
[all...]
H A DMouseModifiersUnitTest_Standard.java23 // I'm verifying button, modifiers and extModifiers for now.
137 int button = event.getButton();
140 int index = (button - 1)*3;
141 // int index = (button - 4)*3;
142 dumpValues(button, modifiers, curStandardModifiers[index], modifiersEx, curStandardExModifiers[index]);
161 checkButton(paramStringElements, button);
162 checkModifiers(testModifier, paramStringElements, button);
163 checkExtModifiersOnPress(testModifier, paramStringElements, button);
166 public static void checkButton(HashMap<String, String> h, int button){ argument
167 if (h.get("button")
175 checkExtModifiersOnPress(int testModifier, HashMap h, int button) argument
208 checkModifiers(int testModifier, HashMap<String, String> h, int button) argument
316 checkExtModifiersOnReleaseClick(int testModifier, HashMap h, int button) argument
520 dumpValues(int button, int modifiers, int modifiersStandard, int modifiersEx, int modifiersExStandard) argument
[all...]
/openjdk7/jdk/test/java/awt/PrintJob/ConstrainedPrintingTest/
H A DConstrainedPrintingTest.java77 final Button button = new Button("Print"); field in class:ConstrainedPrintingTest
112 button.addActionListener(this);
120 frame.add(button, BorderLayout.NORTH);
129 " red lines on the white area below the \"Print\" button, the",
131 "2.Press \"Print\" button. The print dialog will appear. Select",
134 " the image of the \"Print\" button, the test fails. Otherwise",
/openjdk7/jdk/src/share/classes/sun/swing/
H A DDefaultLayoutStyle.java136 * If <code>c</code> is a check box or radio button, and the border is
183 AbstractButton button = (AbstractButton)c;
185 Icon icon = getIcon(button);
186 int gap = button.getIconTextGap();
187 if (isLeftAligned(button, position)) {
189 } else if (isRightAligned(button, position)) {
196 private Icon getIcon(AbstractButton button) { argument
197 Icon icon = button.getIcon();
202 if (button instanceof JCheckBox) {
204 } else if (button instanceo
216 isLeftAligned(AbstractButton button, int position) argument
227 isRightAligned(AbstractButton button, int position) argument
[all...]
/openjdk7/hotspot/agent/src/share/classes/com/sun/java/swing/ui/
H A DCommonUI.java114 JRadioButton button = new JRadioButton(text);
115 button.setMnemonic(mnemonic);
116 button.setSelected(selected);
117 button.setMinimumSize(labelPrefSize);
119 button.addActionListener(listener);
121 button.setPreferredSize(labelPrefSize);
122 return button;
209 JButton button = new JButton(action);
210 setButtonSize(button, buttonPrefSize);
211 return button;
225 setButtonSize(JButton button, Dimension size) argument
[all...]
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/windows/
H A DWindowsInternalFrameTitlePane.java395 private int layoutButton(JComponent button, Part part, argument
401 button.setBounds(x, y, w, h);
416 // System button
/openjdk7/jdk/src/share/classes/java/awt/event/
H A DInputEvent.java169 1<<14, //4th phisical button (this is not a wheel!)
197 * A method to obtain a mask for any existing mouse button.
205 * @param button is a number to represent a button starting from 1.
208 * int button = InputEvent.getMaskForButton(1);
212 * int button = InputEvent.getMaskForButton(MouseEvent.BUTTON1);
219 * <b>button </b> <b>returned mask</b>
226 * The button masks for the extra buttons returned by this method have no assigned names like the
227 * first three button masks.
236 * @throws IllegalArgumentException if {@code button} i
244 getMaskForButton(int button) argument
[all...]
H A DMouseEvent.java68 * <li>a mouse button is pressed
69 * <li>a mouse button is released
70 * <li>a mouse button is clicked (pressed and released)
99 * When a mouse button is clicked, events are generated and sent to the
103 * The button mask returned by {@link InputEvent#getModifiers} reflects
104 * only the button that changed state, not the current state of all buttons.
110 * The button which has changed state is returned by {@link MouseEvent#getButton}
112 * For example, if the first mouse button is pressed, events are sent in the
115 * <b >id </b > <b >modifiers </b > <b >button </b >
123 * For example, if the user presses <b>button
363 int button; field in class:MouseEvent
550 MouseEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int button) argument
729 MouseEvent(Component source, int id, long when, int modifiers, int x, int y, int xAbs, int yAbs, int clickCount, boolean popupTrigger, int button) argument
[all...]
/openjdk7/jdk/src/macosx/classes/com/apple/laf/
H A DAquaButtonUI.java117 // be a default button.
144 // See if the button has overridden the automatic button type
160 public boolean isBorderFromProperty(final AbstractButton button) { argument
161 return button.getClientProperty(BUTTON_TYPE) != null;
166 b.putClientProperty(BUTTON_TYPE, null); // so we know to use the automatic button type
190 // put the listener in the button's client properties so that
479 // super put the listener in the button's client properties
491 // Everytime a hierarchy is change we need to check if the button if moved on or from
492 // a toolbar. If that is the case, we need to re-set the border of the button
[all...]
H A DAquaTextFieldSearch.java278 static void updateCancelIcon(final JButton button, final JTextComponent text) { argument
280 updateCancelIconOnEDT(button, text);
283 public void run() { updateCancelIconOnEDT(button, text); }
288 static void updateCancelIconOnEDT(final JButton button, final JTextComponent text) { argument
289 button.setVisible(!"".equals(text.getText()));
/openjdk7/jdk/src/solaris/native/sun/awt/
H A Dawt_Robot.c356 int32_t button = 0; local
360 // users wants to affect 4 or 5 button but they are assigned
362 button = i + 3;
363 XTestFakeButtonEvent(awt_display, button, isMousePress, CurrentTime);
390 /* Mouse wheel is implemented as a button press of button 4 and 5, so it */
396 int32_t button = wheelAmt < 0 ? 4 : 5; /* wheel up: button 4 */ local
397 /* wheel down: button 5 */
406 XTestFakeButtonEvent(awt_display, button, Tru
[all...]
/openjdk7/jdk/src/windows/native/sun/windows/
H A Dawt_Button.cpp40 jobject button; member in struct:SetLabelStruct
60 /* System provided button class */
146 AwtButton::WmMouseDown(UINT flags, int x, int y, int button) argument
148 // 4530087: keep track of the when the left mouse button is pressed
149 if (button == LEFT_BUTTON) {
152 return AwtComponent::WmMouseDown(flags, x, y, button);
156 AwtButton::WmMouseUp(UINT flags, int x, int y, int button) argument
158 MsgRouting mrResult = AwtComponent::WmMouseUp(flags, x, y, button);
169 // notified (via NotifyListeners()) if the left button press happened on
171 if (button
295 jobject button = sls->button; local
[all...]
/openjdk7/jdk/test/java/awt/MouseAdapter/MouseAdapterUnitTest/
H A DMouseAdapterUnitTest.java112 public static void testPressMouseButton(int button){ argument
115 robot.mousePress(button);
116 robot.mouseRelease(button);
135 public static void testDragMouseButton(int button) { argument
137 robot.mousePress(button);
142 robot.mouseRelease(button);

Completed in 70 milliseconds

123