< prev index next >

test/javax/swing/reliability/TaskZoomJFrameRepaint.java

Print this page
rev 14989 : 8160974: [TESTBUG] Mark more headful tests with @key headful.


   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 javax.swing.*;
  25 import java.awt.*;
  26 
  27 /*
  28  * @test

  29  * @summary Construct a jframe with some components and zoom the frame and bring it back to normal state.
  30  * @author Aruna Samji
  31  * @library ../../../lib/testlibrary
  32  * @build ExtendedRobot
  33  * @run main TaskZoomJFrameRepaint
  34  */
  35 
  36 public class TaskZoomJFrameRepaint extends Task<GUIZoomFrame> {
  37 
  38     public static void main (String[] args) throws Exception {
  39         new TaskZoomJFrameRepaint(GUIZoomFrame.class, new ExtendedRobot()).task();
  40     }
  41 
  42     TaskZoomJFrameRepaint(Class guiClass, ExtendedRobot robot) throws Exception {
  43          super(guiClass, robot);
  44     }
  45 
  46     public void task() throws Exception {
  47         SwingUtilities.invokeAndWait(() -> {
  48             gui.jframe2.setVisible(true);




   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 javax.swing.*;
  25 import java.awt.*;
  26 
  27 /*
  28  * @test
  29  * @key headful
  30  * @summary Construct a jframe with some components and zoom the frame and bring it back to normal state.
  31  * @author Aruna Samji
  32  * @library ../../../lib/testlibrary
  33  * @build ExtendedRobot
  34  * @run main TaskZoomJFrameRepaint
  35  */
  36 
  37 public class TaskZoomJFrameRepaint extends Task<GUIZoomFrame> {
  38 
  39     public static void main (String[] args) throws Exception {
  40         new TaskZoomJFrameRepaint(GUIZoomFrame.class, new ExtendedRobot()).task();
  41     }
  42 
  43     TaskZoomJFrameRepaint(Class guiClass, ExtendedRobot robot) throws Exception {
  44          super(guiClass, robot);
  45     }
  46 
  47     public void task() throws Exception {
  48         SwingUtilities.invokeAndWait(() -> {
  49             gui.jframe2.setVisible(true);


< prev index next >