< prev index next >

test/javax/swing/JTabbedPane/6495408/bug6495408.java

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


   8  *
   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  * @test

  28  * @bug 6495408
  29  * @summary REGRESSION: JTabbedPane throws ArrayIndexOutOfBoundsException
  30  * @author Alexander Potochkin
  31  * @run main bug6495408
  32  */
  33 
  34 public class bug6495408 {
  35 
  36     static JTabbedPane tabbedPane;
  37 
  38     public static void main(String[] args) throws Exception {
  39         final Robot robot = new Robot();
  40         robot.setAutoDelay(50);
  41 
  42         SwingUtilities.invokeAndWait(new Runnable() {
  43 
  44             public void run() {
  45                 final JFrame frame = new JFrame();
  46                 frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  47                 tabbedPane = new JTabbedPane();




   8  *
   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  * @test
  28  * @key headful
  29  * @bug 6495408
  30  * @summary REGRESSION: JTabbedPane throws ArrayIndexOutOfBoundsException
  31  * @author Alexander Potochkin
  32  * @run main bug6495408
  33  */
  34 
  35 public class bug6495408 {
  36 
  37     static JTabbedPane tabbedPane;
  38 
  39     public static void main(String[] args) throws Exception {
  40         final Robot robot = new Robot();
  41         robot.setAutoDelay(50);
  42 
  43         SwingUtilities.invokeAndWait(new Runnable() {
  44 
  45             public void run() {
  46                 final JFrame frame = new JFrame();
  47                 frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  48                 tabbedPane = new JTabbedPane();


< prev index next >