< prev index next >

test/jdk/java/awt/Modal/ToBack/ToBackDDFTest.java

Print this page

        

@@ -60,10 +60,11 @@
     private void createGUI() {
 
         hiddenFrame = new Frame();
         leftDialog = new TestDialog(hiddenFrame);
         leftDialog.setLocation(50, 50);
+        leftDialog.setResizable(false);
         leftDialog.setBackground(Color.BLUE);
         leftDialog.setVisible(true);
 
         dialog = new CustomDialog(leftDialog);
 

@@ -74,13 +75,15 @@
             dialog.setModalityType(modalityType);
         }
 
         dialog.setBackground(Color.WHITE);
         dialog.setLocation(150, 50);
+        dialog.setResizable(false);
 
         rightFrame = new TestFrame();
         rightFrame.setLocation(250, 50);
+        rightFrame.setResizable(false);
         rightFrame.setBackground(Color.RED);
 
         if (modalityType == Dialog.ModalityType.APPLICATION_MODAL) {
             rightFrame.setModalExclusionType(
                 Dialog.ModalExclusionType.APPLICATION_EXCLUDE);
< prev index next >