9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
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 java.awt.*;
25 import java.awt.event.*;
26 import javax.swing.*;
27 /*
28 * @test
29 * @bug 8080137
30 * @summary Dragged events for extra mouse buttons (4,5,6) are not generated
31 * on JSplitPane
32 * @author alexandr.scherbatiy area=awt.event
33 * @run main MouseDraggedTest
34 */
35 public class MouseDraggedTest {
36
37 private static JFrame frame;
38 private static Rectangle frameBounds;
39 private static volatile boolean mouseDragged;
40
41 public static void main(String[] args) throws Exception {
42 try {
43 Robot robot = new Robot();
44 robot.setAutoDelay(50);
45
46 SwingUtilities.invokeAndWait(MouseDraggedTest::createAndShowGUI);
47 robot.waitForIdle();
48
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
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 java.awt.*;
25 import java.awt.event.*;
26 import javax.swing.*;
27 /*
28 * @test
29 * @key headful
30 * @bug 8080137
31 * @summary Dragged events for extra mouse buttons (4,5,6) are not generated
32 * on JSplitPane
33 * @author alexandr.scherbatiy area=awt.event
34 * @run main MouseDraggedTest
35 */
36 public class MouseDraggedTest {
37
38 private static JFrame frame;
39 private static Rectangle frameBounds;
40 private static volatile boolean mouseDragged;
41
42 public static void main(String[] args) throws Exception {
43 try {
44 Robot robot = new Robot();
45 robot.setAutoDelay(50);
46
47 SwingUtilities.invokeAndWait(MouseDraggedTest::createAndShowGUI);
48 robot.waitForIdle();
49
|