< prev index next >

test/javax/swing/reliability/TaskUndJFrameProperties.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 Undecorated JFrame, try to change the properties
  30  *          using setVisible() method.
  31  * @author Aruna Samji
  32  * @library ../../../lib/testlibrary
  33  * @build ExtendedRobot
  34  * @run main TaskUndJFrameProperties
  35  */
  36 
  37 public class TaskUndJFrameProperties extends Task<GUIUndFrame> {
  38 
  39     public static void main (String[] args) throws Exception {
  40         new TaskUndJFrameProperties(GUIUndFrame.class, new ExtendedRobot()).task();
  41     }
  42 
  43     TaskUndJFrameProperties(Class guiClass, ExtendedRobot robot) throws Exception {
  44         super(guiClass, robot);
  45     }
  46 
  47     public void task() throws Exception {
  48         SwingUtilities.invokeAndWait(() -> {




   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 Undecorated JFrame, try to change the properties
  31  *          using setVisible() method.
  32  * @author Aruna Samji
  33  * @library ../../../lib/testlibrary
  34  * @build ExtendedRobot
  35  * @run main TaskUndJFrameProperties
  36  */
  37 
  38 public class TaskUndJFrameProperties extends Task<GUIUndFrame> {
  39 
  40     public static void main (String[] args) throws Exception {
  41         new TaskUndJFrameProperties(GUIUndFrame.class, new ExtendedRobot()).task();
  42     }
  43 
  44     TaskUndJFrameProperties(Class guiClass, ExtendedRobot robot) throws Exception {
  45         super(guiClass, robot);
  46     }
  47 
  48     public void task() throws Exception {
  49         SwingUtilities.invokeAndWait(() -> {


< prev index next >