20 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21 *
22 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23 * or visit www.oracle.com if you need additional information or have any
24 * questions.
25 */
26
27 import java.awt.Point;
28 import java.awt.Rectangle;
29 import java.awt.Robot;
30 import java.awt.event.InputEvent;
31 import java.awt.event.KeyEvent;
32 import javax.swing.DefaultCellEditor;
33 import javax.swing.JComboBox;
34 import javax.swing.JFrame;
35 import javax.swing.JTable;
36 import javax.swing.SwingUtilities;
37
38 /**
39 * @test
40 * @bug 8072767
41 * @author Alexander Scherbatiy
42 * @summary DefaultCellEditor for comboBox creates ActionEvent with wrong source
43 * object
44 * @run main bug8072767
45 */
46
47 public class bug8072767 {
48
49 private static final String TEST1 = "Test";
50 private static final String TEST2 = TEST1 + 1;
51
52 private static JFrame frame;
53 private static JTable table;
54 private static Point point;
55 private static boolean testPass;
56
57 public static void main(String[] args) throws Exception {
58 Robot robot = new Robot();
59 robot.setAutoDelay(50);
|
20 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21 *
22 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23 * or visit www.oracle.com if you need additional information or have any
24 * questions.
25 */
26
27 import java.awt.Point;
28 import java.awt.Rectangle;
29 import java.awt.Robot;
30 import java.awt.event.InputEvent;
31 import java.awt.event.KeyEvent;
32 import javax.swing.DefaultCellEditor;
33 import javax.swing.JComboBox;
34 import javax.swing.JFrame;
35 import javax.swing.JTable;
36 import javax.swing.SwingUtilities;
37
38 /**
39 * @test
40 * @key headful
41 * @bug 8072767
42 * @author Alexander Scherbatiy
43 * @summary DefaultCellEditor for comboBox creates ActionEvent with wrong source
44 * object
45 * @run main bug8072767
46 */
47
48 public class bug8072767 {
49
50 private static final String TEST1 = "Test";
51 private static final String TEST2 = TEST1 + 1;
52
53 private static JFrame frame;
54 private static JTable table;
55 private static Point point;
56 private static boolean testPass;
57
58 public static void main(String[] args) throws Exception {
59 Robot robot = new Robot();
60 robot.setAutoDelay(50);
|