test/java/awt/Mixing/AWT_Mixing/JSplitPaneOverlapping.java

Print this page

        

*** 34,43 **** --- 34,44 ---- import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JSplitPane; import javax.swing.SwingUtilities; + import test.java.awt.regtesthelpers.Util; /** * AWT/Swing overlapping test for {@link javax.swing.JSplitPane } component. * <p>This test creates puts heavyweight and lightweight components into different panels and test if splitter image and components itself are drawn correctly. * <p>See base class for test info.
*** 45,54 **** --- 46,57 ---- /* @test @bug 6986109 @summary Overlapping test for javax.swing.JSplitPane @author sergey.grinev@oracle.com: area=awt.mixing + @library ../../regtesthelpers + @build Util @run main JSplitPaneOverlapping */ public class JSplitPaneOverlapping extends OverlappingTestBase { private boolean clicked = false;
*** 97,107 **** splitterLoc.translate(-(splitterLoc.x - leftLoc.x) / 2, 30); } }); } catch (Exception e) { e.printStackTrace(); ! System.exit(1); } // run robot Robot robot = Util.createRobot(); robot.setAutoDelay(ROBOT_DELAY); --- 100,110 ---- splitterLoc.translate(-(splitterLoc.x - leftLoc.x) / 2, 30); } }); } catch (Exception e) { e.printStackTrace(); ! throw new RuntimeException("Where is splitter?"); } // run robot Robot robot = Util.createRobot(); robot.setAutoDelay(ROBOT_DELAY);