< prev index next >

test/javax/swing/JScrollPane/6274267/bug6274267.java

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


   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 /* @test
  27    @bug 6274267
  28    @summary Checks that ScrollPaneLayout properly calculates preferred
  29    layout size.
  30    @author Mikhail Lapshin
  31    @run main bug6274267
  32 */


  33 
  34 import javax.swing.*;
  35 import java.awt.*;
  36 
  37 public class bug6274267 {
  38     private JFrame frame;
  39     private Component left;
  40 
  41     public static void main(String[] args) throws Exception {
  42         final bug6274267 test = new bug6274267();
  43         Robot robot = new Robot();
  44         try {
  45             SwingUtilities.invokeAndWait(new Runnable() {
  46                 public void run() {
  47                     test.setupUI1();
  48                 }
  49             });
  50             robot.waitForIdle();
  51             SwingUtilities.invokeAndWait(new Runnable() {
  52                 public void run() {




   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 /*
  27  * @test
  28  * @key headful
  29  * @bug 6274267
  30  * @summary Checks that ScrollPaneLayout properly calculates preferred
  31  * layout size.
  32  * @author Mikhail Lapshin
  33  * @run main bug6274267
  34  */
  35 
  36 import javax.swing.*;
  37 import java.awt.*;
  38 
  39 public class bug6274267 {
  40     private JFrame frame;
  41     private Component left;
  42 
  43     public static void main(String[] args) throws Exception {
  44         final bug6274267 test = new bug6274267();
  45         Robot robot = new Robot();
  46         try {
  47             SwingUtilities.invokeAndWait(new Runnable() {
  48                 public void run() {
  49                     test.setupUI1();
  50                 }
  51             });
  52             robot.waitForIdle();
  53             SwingUtilities.invokeAndWait(new Runnable() {
  54                 public void run() {


< prev index next >