Searched refs:button (Results 1 - 25 of 151) sorted by relevance

1234567

/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/beans/PropertyChangeSupport/
H A DTestSynchronization.java39 final JButton button = new JButton();
40 button.addPropertyChangeListener("name", new PropertyChangeListener() {
45 button.addPropertyChangeListener(new PropertyChangeListener() {
47 for (PropertyChangeListener listener : button.getPropertyChangeListeners())
48 button.removePropertyChangeListener(listener);
51 button.setName(null);
/openjdk7/jdk/test/java/awt/Container/ValidateRoot/
H A DInvalidateMustRespectValidateRoots.java45 final JButton button = new JButton();
47 frame.add(button);
51 button.addActionListener(new ActionListener() {
53 if (button.isValid()) {
54 button.invalidate();
56 button.revalidate();
68 // --> button
81 // Now invalidate the button
82 button.invalidate();
96 button
[all...]
/openjdk7/jdk/test/javax/swing/JColorChooser/
H A DTest4461329.java40 JButton button = new JButton("Color"); // NON-NLS: simple label
41 chooser.setPreviewPanel(button);
42 if (button != chooser.getPreviewPanel()) {
H A DTest4759934.java44 private static final String CMD_DIALOG = "Show Dialog"; // NON-NLS: first button
45 private static final String CMD_CHOOSER = "Show ColorChooser"; // NON-NLS: second button
71 JButton button = new JButton(command);
72 button.setActionCommand(command);
73 button.addActionListener(this);
74 button.setFont(button.getFont().deriveFont(64.0f));
76 window.add(button);
H A DTest6348456.java50 JButton button = new JButton("Swap models");
51 button.addActionListener(this);
56 add(BorderLayout.NORTH, button);
/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/javax/swing/plaf/synth/SynthToolBarUI/6739756/
H A Dbug6739756.java50 JButton button = new JButton("Test");
51 button.setVisible(false);
52 tb.add(button);
/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/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/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/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/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/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...]
/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/beans/EventHandler/
H A DTest6788531.java37 JButton button = new JButton("hi");
38 button.addActionListener(EventHandler.create(ActionListener.class, new Private(), "run"));
39 button.addActionListener(EventHandler.create(ActionListener.class, new PrivateGeneric(), "run", "actionCommand"));
40 button.doClick();
H A DTest6179222.java51 JButton button = new JButton("hi");
52 button.addActionListener(listener);
53 button.doClick();
/openjdk7/jdk/test/java/beans/XMLDecoder/spec/
H A DTestObject.java41 + " <object id=\"button\" class=\"javax.swing.JButton\">\n"
42 + " <string>button</string>\n"
52 + " <object idref=\"button\"/>\n"
69 JButton button = (JButton) panel.getComponents()[0];
70 if (!button.getText().equals("button")) { // NON-NLS: hardcoded in XML
71 throw new Error("unexpected button text");
73 if (SwingConstants.CENTER != button.getVerticalAlignment()) {
80 if (button != label.getLabelFor()) {
/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/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/test/java/awt/event/MouseEvent/AcceptExtraButton/
H A DAcceptExtraButton.java4 @summary verifies that MouseEvent CTOR accepts extra mouse button numbers
24 for (int button = 0; button <= MouseInfo.getNumberOfButtons(); button++){
25 System.out.println("button == "+button);
34 button );// MouseEvent.NOBUTTON : button
/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/font/TextLayout/
H A DTestSinhalaChar.java42 public static boolean AUTOMATIC_TEST=true; // true; run test automatically, else manually at button push
55 JButton button = new JButton("Set Char x0DDD");
56 button.addActionListener(new AbstractAction() {
61 panel.add(button);
/openjdk7/jdk/test/java/beans/XMLEncoder/
H A DTest4652928.java54 context.add(new JButton("button"));
56 JButton button = new JButton();
57 button.setText("another button");
58 context.add(button);

Completed in 93 milliseconds

1234567