27 import java.awt.Point;
28 import java.awt.Rectangle;
29 import java.awt.Robot;
30 import java.awt.AWTException;
31 import java.awt.IllegalComponentStateException;
32 import java.awt.event.InputEvent;
33 import javax.swing.JButton;
34 import javax.swing.JDesktopPane;
35 import javax.swing.JFrame;
36 import javax.swing.JInternalFrame;
37 import javax.swing.JOptionPane;
38 import javax.swing.JPanel;
39 import javax.swing.JScrollPane;
40 import javax.swing.JTable;
41 import javax.swing.SwingUtilities;
42 import javax.swing.ToolTipManager;
43 import javax.swing.table.DefaultTableModel;
44
45 /**
46 * @test
47 * @bug 6219960
48 * @summary null reference in ToolTipManager
49 * @run main bug6219960
50 */
51 public class bug6219960 {
52
53 private static final String QUESTION = "Question";
54
55 static volatile JFrame frame;
56 static JTable table;
57
58 public static void main(String[] args) throws Exception {
59 Robot robot = new Robot();
60 SwingUtilities.invokeAndWait(bug6219960::createAndShowGUI);
61 robot.waitForIdle();
62 showModal("The tooltip should be showing. Press ok with mouse. And don't move it.");
63 robot.waitForIdle();
64 showModal("Now press ok and move the mouse inside the table (don't leave it).");
65 robot.waitForIdle();
66 }
|
27 import java.awt.Point;
28 import java.awt.Rectangle;
29 import java.awt.Robot;
30 import java.awt.AWTException;
31 import java.awt.IllegalComponentStateException;
32 import java.awt.event.InputEvent;
33 import javax.swing.JButton;
34 import javax.swing.JDesktopPane;
35 import javax.swing.JFrame;
36 import javax.swing.JInternalFrame;
37 import javax.swing.JOptionPane;
38 import javax.swing.JPanel;
39 import javax.swing.JScrollPane;
40 import javax.swing.JTable;
41 import javax.swing.SwingUtilities;
42 import javax.swing.ToolTipManager;
43 import javax.swing.table.DefaultTableModel;
44
45 /**
46 * @test
47 * @key headful
48 * @bug 6219960
49 * @summary null reference in ToolTipManager
50 * @run main bug6219960
51 */
52 public class bug6219960 {
53
54 private static final String QUESTION = "Question";
55
56 static volatile JFrame frame;
57 static JTable table;
58
59 public static void main(String[] args) throws Exception {
60 Robot robot = new Robot();
61 SwingUtilities.invokeAndWait(bug6219960::createAndShowGUI);
62 robot.waitForIdle();
63 showModal("The tooltip should be showing. Press ok with mouse. And don't move it.");
64 robot.waitForIdle();
65 showModal("Now press ok and move the mouse inside the table (don't leave it).");
66 robot.waitForIdle();
67 }
|