Searched defs:button (Results 1 - 25 of 71) sorted by relevance

123

/openjdk7/jdk/test/javax/swing/JComponent/7154030/
H A Dbug7154030.java55 private static JButton button = null; field in class:bug7154030
73 button = new JButton("button");
76 button.setSize(200, 200);
77 button.setLocation(100, 100);
78 button.setForeground(Color.RED);
79 button.setBackground(Color.RED);
80 button.setOpaque(true);
81 button.setVisible(false);
82 desktop.add(button);
[all...]
/openjdk7/jdk/test/java/awt/Focus/AppletInitialFocusTest/
H A DAppletInitialFocusTest.java41 Button button = new Button("Button"); field in class:AppletInitialFocusTest
44 add(button);
50 Util.waitTillShown(button);
53 if (!button.hasFocus()) {
/openjdk7/jdk/src/share/demo/jfc/SwingApplet/
H A DSwingApplet.java58 JButton button; field in class:SwingApplet
69 button = new JButton("Hello, I'm a Swing Button!");
70 getContentPane().add(button);
95 if (button != null) {
96 getContentPane().remove(button);
97 button = null;
/openjdk7/jdk/test/javax/swing/JLabel/6596966/
H A Dbug6596966.java42 private static JButton button; field in class:bug6596966
51 button = new JButton("Button");
60 pnContent.add(button);
/openjdk7/jdk/test/javax/swing/RepaintManager/IconifyTest/
H A DIconifyTest.java40 static JButton button; field in class:IconifyTest
47 button = new JButton("HI");
48 frame.getContentPane().add(button);
54 button.repaint();
55 if (!rm.getDirtyRegion(button).isEmpty()) {
/openjdk7/hotspot/agent/src/share/classes/com/sun/java/swing/ui/
H A DToggleActionPropertyChangeListener.java36 public ToggleActionPropertyChangeListener(AbstractButton button) argument
38 this.button = button;
47 button.setSelected(selected.booleanValue());
51 private AbstractButton button; field in class:ToggleActionPropertyChangeListener
H A DCommonToolBar.java58 javax.swing.JButton button = add(action);
59 configureButton(button, action);
69 JToggleButton button = new JToggleButton(a);
70 button.addItemListener(a);
71 button.setSelected(a.isSelected());
73 group.add(button);
74 add(button);
75 configureToggleButton(button, a);
78 protected void configureToggleButton(JToggleButton button, Action action) argument
80 configureButton(button, actio
84 configureButton(AbstractButton button, Action action) argument
[all...]
/openjdk7/jdk/test/java/awt/Dialog/ValidateOnShow/
H A DValidateOnShow.java42 private static Button button = new Button("Test"); field in class:ValidateOnShow
66 panel.add(button);
73 // now invalidate the button and the panel
74 button.setBounds(1, 1, 30, 30);
/openjdk7/jdk/test/java/awt/Focus/ClearGlobalFocusOwnerTest/
H A DClearGlobalFocusOwnerTest.java41 static Button button = new Button("Test button"); field in class:ClearGlobalFocusOwnerTest
44 button.addFocusListener(new FocusAdapter() {
53 frame.add(button);
59 if (!button.hasFocus()) {
60 button.requestFocus();
62 if (!button.hasFocus()) {
63 throw new TestErrorException("couldn't focus " + button);
/openjdk7/jdk/test/java/awt/Focus/FocusTraversalPolicy/
H A DInitialFTP_AWT.java33 Button button = new Button("button"); field in class:AWTFrame
45 this.add(button);
H A DInitialFTP_Swing.java33 JButton button = new JButton("button"); field in class:SwingFrame
41 this.add(button);
/openjdk7/jdk/test/javax/swing/JTextArea/7049024/
H A Dbug7049024.java47 // This button is used to move focus away from textField.
48 public static JButton button = null; field in class:bug7049024
62 button = new JButton("To compete the focus");
66 frame.getContentPane().add(button);
104 button.requestFocusInWindow();
/openjdk7/jdk/test/javax/swing/JToolBar/4247996/
H A Dbug4247996.java36 private static JButton button; field in class:bug4247996
69 if (!button.getSize().equals(toogleButton.getSize())) {
83 Point p = button.getLocationOnScreen();
84 Dimension size = button.getSize();
104 + "toolbar overrode button's rollover property");
109 rToolbar.add(button = new JButton("Test"));
/openjdk7/jdk/test/javax/swing/JToolTip/4846413/
H A Dbug4846413.java45 private static JButton button; field in class:bug4846413
106 Point p = button.getLocationOnScreen();
107 Dimension size = button.getSize();
119 button = new JButton("Press me");
120 button.setToolTipText("test");
121 button.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(
123 button.getActionMap().put("someCommand", null);
124 frame.getContentPane().add(button);
/openjdk7/jdk/test/java/awt/Choice/ChoiceKeyEventReaction/
H A DChoiceKeyEventReaction.java91 public void testKeyOnChoice(int button, int key){ argument
95 robot.mousePress(button);
97 robot.mouseRelease(button);
/openjdk7/jdk/test/java/awt/Focus/ConsumeNextKeyTypedOnModalShowTest/
H A DConsumeNextKeyTypedOnModalShowTest.java47 Button button = new Button("Button"); field in class:ConsumeNextKeyTypedOnModalShowTest
65 dialog.add(button);
/openjdk7/jdk/test/java/awt/Focus/OwnedWindowFocusIMECrashTest/
H A DOwnedWindowFocusIMECrashTest.java43 JButton button = new JButton("Button"); field in class:OwnedWindowFocusIMECrashTest
59 window.add(button);
73 Util.clickOnComp(button, robot);
74 if (!button.hasFocus()) {
75 throw new TestErrorException("the button couldn't be focused by click");
/openjdk7/jdk/test/java/awt/Mouse/MouseModifiersUnitTest/
H A DExtraButtonDrag.java4 @summary verifies that drag events are coming for every button if the property is set to true
70 System.out.println("button to drag = " +(i+1) + " : value passed to robot = " +buttonMask[i]);
104 public static void dragMouse(int button, int x0, int y0, int x1, int y1){ argument
115 robot.mousePress(button);
127 robot.mouseRelease(button);
/openjdk7/jdk/test/java/awt/print/PaintSetEnabledDeadlock/
H A DPaintSetEnabledDeadlock.java41 final Button button; field in class:PaintSetEnabledDeadlock
54 Util.clickOnComp(frame.button, robot);
79 button = new Button("Enable");
80 button.addMouseListener(new MouseAdapter() {
89 add(button);
/openjdk7/jdk/src/share/classes/sun/tools/jconsole/inspector/
H A DOperationEntry.java40 JButton button,
45 setPanel(isCallable, button, xoperations);
49 JButton button,
75 button,
38 OperationEntry(MBeanOperationInfo operation, boolean isCallable, JButton button, XOperations xoperations) argument
48 setPanel(boolean isCallable, JButton button, XOperations xoperations) argument
/openjdk7/jdk/test/java/awt/Component/Revalidate/
H A DRevalidate.java42 private static Button button = new Button("Test"); field in class:Revalidate
52 System.out.println(" button: " + button.isValid());
70 check("button", button, b);
76 panel.add(button);
82 button.setBounds(1, 1, 30, 30);
84 check("button.setBounds():", true, false, false);
86 button.revalidate();
88 check("button
[all...]
/openjdk7/jdk/test/java/awt/Focus/NonFocusableWindowTest/
H A DNonfocusableOwnerTest.java47 Button button = new Button("button"); field in class:NonfocusableOwnerTest
99 child.add(button);
104 Util.clickOnComp(button, robot);
105 if (button == KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner()) {
121 child2.add(button);
126 Util.clickOnComp(button, robot);
127 if (button == KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner()) {
145 child2.add(button);
150 Util.clickOnComp(button, robo
[all...]
/openjdk7/jdk/test/java/awt/event/MouseEvent/FrameMouseEventAbsoluteCoordsTest/
H A DFrameMouseEventAbsoluteCoordsTest.java46 Button button = new Button("Just Button"); field in class:FrameMouseEventAbsoluteCoordsTest
54 button.addMouseListener(this);
55 frame.add(button);
69 mousePositionAbsolute = new Point(button.getLocationOnScreen().x + button.getWidth()/2,
70 button.getLocationOnScreen().y + button.getHeight()/2);
71 mousePosition = new Point(button.getWidth()/2,
72 button.getHeight()/2);
/openjdk7/jdk/test/javax/swing/JComponent/6989617/
H A Dbug6989617.java38 private static JButton button; field in class:bug6989617
48 button = new JButton("Hello");
49 panel.add(button);
58 // when button.repaint() is called
63 button.repaint();
70 if (!pr.getSize().equals(button.getSize())) {
73 if (!pr.getLocation().equals(button.getLocation())) {
80 // when button.repaint() is called
89 button.repaint();
/openjdk7/jdk/src/share/classes/javax/swing/plaf/metal/
H A DMetalDesktopIconUI.java46 JButton button; field in class:MetalDesktopIconUI
69 button = new JButton (title, icon);
70 button.addActionListener( new ActionListener() {
73 button.setFont(desktopIcon.getFont());
74 button.setBackground(desktopIcon.getBackground());
75 button.setForeground(desktopIcon.getForeground());
77 int buttonH = button.getPreferredSize().height;
87 desktopIcon.add(button, BorderLayout.CENTER);
94 desktopIcon.remove(button);
95 button
[all...]

Completed in 131 milliseconds

123