test/java/awt/Mixing/AWT_Mixing/MixingPanelsResizing.java

Print this page

        

*** 24,43 **** --- 24,46 ---- import java.awt.*; import java.awt.event.InputEvent; import javax.swing.*; import java.io.*; + import test.java.awt.regtesthelpers.Util; /** * AWT/Swing overlapping test for Panel and JPanel behavior during resizing. * <p>See <a href="https://bugs.openjdk.java.net/browse/JDK-6786219">JDK-6786219</a> for details */ /* @test @bug 6786219 @summary Issues when resizing the frame after mixing of heavy weight & light weight components @author sergey.grinev@oracle.com: area=awt.mixing + @library ../../regtesthelpers + @build Util @build FrameBorderCounter @run main MixingPanelsResizing */ public class MixingPanelsResizing {
*** 363,381 **** private static TestDialog dialog; public static void createDialogWithInstructions(String[] instructions) { dialog = new TestDialog(new Frame(), "Instructions"); dialog.printInstructions(instructions); ! dialog.setVisible(true); println("Any messages for the tester will display here."); } public static void createDialog() { dialog = new TestDialog(new Frame(), "Instructions"); String[] defInstr = {"Instructions will appear here. ", ""}; dialog.printInstructions(defInstr); ! dialog.setVisible(true); println("Any messages for the tester will display here."); } public static void printInstructions(String[] instructions) { dialog.printInstructions(instructions); --- 366,384 ---- private static TestDialog dialog; public static void createDialogWithInstructions(String[] instructions) { dialog = new TestDialog(new Frame(), "Instructions"); dialog.printInstructions(instructions); ! //dialog.setVisible(true); println("Any messages for the tester will display here."); } public static void createDialog() { dialog = new TestDialog(new Frame(), "Instructions"); String[] defInstr = {"Instructions will appear here. ", ""}; dialog.printInstructions(defInstr); ! //dialog.setVisible(true); println("Any messages for the tester will display here."); } public static void printInstructions(String[] instructions) { dialog.printInstructions(instructions);
*** 411,421 **** messageText = new TextArea("", 5, maxStringLength, scrollBoth); add("Center", messageText); pack(); ! setVisible(true); }// TestDialog() //DO NOT call this directly, go through Sysout public void printInstructions(String[] instructions) { //Clear out any current instructions --- 414,424 ---- messageText = new TextArea("", 5, maxStringLength, scrollBoth); add("Center", messageText); pack(); ! //setVisible(true); }// TestDialog() //DO NOT call this directly, go through Sysout public void printInstructions(String[] instructions) { //Clear out any current instructions