author | yan |
Tue, 23 Jun 2015 11:59:27 +0300 | |
changeset 31448 | 1066345d2a8a |
parent 26750 | d0d6c64a2e2b |
permissions | -rw-r--r-- |
13003
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
1 |
/* |
31448
1066345d2a8a
8076468: Add @modules to tests in jdk_desktop test group
yan
parents:
26750
diff
changeset
|
2 |
* Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved. |
13003
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
4 |
* |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
8 |
* |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
13 |
* accompanied this code). |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
14 |
* |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
18 |
* |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
21 |
* questions. |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
22 |
*/ |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
23 |
|
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
24 |
/* @test |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
25 |
* @bug 4449413 |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
26 |
* @summary Tests that checkbox and radiobuttons' check marks are visible when background is black |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
27 |
* @author Ilya Boyandin |
26750
d0d6c64a2e2b
8058726: Update regtests using sun.awt.OSInfo, part 1
yan
parents:
13003
diff
changeset
|
28 |
* @library ../../../../lib/testlibrary |
31448
1066345d2a8a
8076468: Add @modules to tests in jdk_desktop test group
yan
parents:
26750
diff
changeset
|
29 |
* @modules java.desktop/sun.awt |
26750
d0d6c64a2e2b
8058726: Update regtests using sun.awt.OSInfo, part 1
yan
parents:
13003
diff
changeset
|
30 |
* @build jdk.testlibrary.OSInfo |
13003
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
31 |
* @run applet/manual=yesno bug4449413.html |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
32 |
*/ |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
33 |
|
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
34 |
import javax.swing.*; |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
35 |
import javax.swing.plaf.metal.*; |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
36 |
import java.awt.event.*; |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
37 |
import java.awt.*; |
26750
d0d6c64a2e2b
8058726: Update regtests using sun.awt.OSInfo, part 1
yan
parents:
13003
diff
changeset
|
38 |
import jdk.testlibrary.OSInfo; |
13003
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
39 |
|
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
40 |
public class bug4449413 extends JApplet { |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
41 |
|
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
42 |
@Override |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
43 |
public void init() { |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
44 |
|
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
45 |
try { |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
46 |
|
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
47 |
if (OSInfo.getOSType() == OSInfo.OSType.MACOSX) { |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
48 |
UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
49 |
} |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
50 |
|
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
51 |
final MetalTheme oceanTheme = (MetalTheme) sun.awt.AppContext.getAppContext().get("currentMetalTheme"); |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
52 |
|
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
53 |
|
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
54 |
SwingUtilities.invokeAndWait(new Runnable() { |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
55 |
|
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
56 |
@Override |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
57 |
public void run() { |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
58 |
getContentPane().setLayout(new FlowLayout()); |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
59 |
final JPanel panel = new JPanel(); |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
60 |
|
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
61 |
JCheckBox box = new JCheckBox("Use Ocean theme", true); |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
62 |
getContentPane().add(box); |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
63 |
box.addItemListener(new ItemListener() { |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
64 |
|
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
65 |
@Override |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
66 |
public void itemStateChanged(ItemEvent e) { |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
67 |
if (e.getStateChange() == ItemEvent.SELECTED) { |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
68 |
MetalLookAndFeel.setCurrentTheme(oceanTheme); |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
69 |
} else { |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
70 |
MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme()); |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
71 |
} |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
72 |
SwingUtilities.updateComponentTreeUI(panel); |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
73 |
} |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
74 |
}); |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
75 |
|
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
76 |
getContentPane().add(panel); |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
77 |
panel.setLayout(new GridLayout(4, 6, 10, 15)); |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
78 |
for (int k = 0; k <= 3; k++) { |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
79 |
for (int j = 1; j >= 0; j--) { |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
80 |
AbstractButton b = createButton(j, k); |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
81 |
panel.add(b); |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
82 |
} |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
83 |
} |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
84 |
} |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
85 |
}); |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
86 |
|
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
87 |
} catch (Exception e) { |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
88 |
throw new RuntimeException(e); |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
89 |
} |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
90 |
} |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
91 |
|
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
92 |
static AbstractButton createButton(int enabled, int type) { |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
93 |
AbstractButton b = null; |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
94 |
switch (type) { |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
95 |
case 0: |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
96 |
b = new JRadioButton("RadioButton"); |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
97 |
break; |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
98 |
case 1: |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
99 |
b = new JCheckBox("CheckBox"); |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
100 |
break; |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
101 |
case 2: |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
102 |
b = new JRadioButtonMenuItem("RBMenuItem"); |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
103 |
break; |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
104 |
case 3: |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
105 |
b = new JCheckBoxMenuItem("CBMenuItem"); |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
106 |
break; |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
107 |
} |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
108 |
b.setBackground(Color.black); |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
109 |
b.setForeground(Color.white); |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
110 |
b.setEnabled(enabled == 1); |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
111 |
b.setSelected(true); |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
112 |
return b; |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
113 |
} |
a30d38cef987
7150049: [macosx] closed/javax/swing/JCheckBox/4449413/bug4449413.java check the checkbox again,it auto fail
alexsch
parents:
diff
changeset
|
114 |
} |