13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 import com.sun.java.swing.plaf.windows.WindowsComboBoxUI.WindowsComboBoxEditor;
25 import java.awt.Toolkit;
26 import java.awt.event.ItemEvent;
27 import java.awt.event.ItemListener;
28 import javax.swing.ComboBoxEditor;
29 import javax.swing.JComboBox;
30 import javax.swing.JFrame;
31 import javax.swing.JTextField;
32 import javax.swing.UIManager;
33 import sun.awt.SunToolkit;
34
35 import static javax.swing.SwingUtilities.invokeAndWait;
36 import static javax.swing.SwingUtilities.windowForComponent;
37 import static javax.swing.WindowConstants.DISPOSE_ON_CLOSE;
38
39 /*
40 * @test
41 * @bug 8015300
42 * @summary Tests that editable combobox select all text
43 * @author Sergey Malenkov
44 * @library ../../../../lib/testlibrary/
45 * @build ExtendedRobot
46 * @run main Test8015300
47 */
48
49 public class Test8015300 {
50 private static final ExtendedRobot robot = createRobot();
51 private static final String[] ITEMS = {
52 "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M",
53 "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"};
|
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 import com.sun.java.swing.plaf.windows.WindowsComboBoxUI.WindowsComboBoxEditor;
25 import java.awt.Toolkit;
26 import java.awt.event.ItemEvent;
27 import java.awt.event.ItemListener;
28 import javax.swing.ComboBoxEditor;
29 import javax.swing.JComboBox;
30 import javax.swing.JFrame;
31 import javax.swing.JTextField;
32 import javax.swing.UIManager;
33
34 import static javax.swing.SwingUtilities.invokeAndWait;
35 import static javax.swing.SwingUtilities.windowForComponent;
36 import static javax.swing.WindowConstants.DISPOSE_ON_CLOSE;
37
38 /*
39 * @test
40 * @bug 8015300
41 * @summary Tests that editable combobox select all text
42 * @author Sergey Malenkov
43 * @library ../../../../lib/testlibrary/
44 * @build ExtendedRobot
45 * @run main Test8015300
46 */
47
48 public class Test8015300 {
49 private static final ExtendedRobot robot = createRobot();
50 private static final String[] ITEMS = {
51 "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M",
52 "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"};
|