21 * questions.
22 */
23
24 import java.awt.BorderLayout;
25
26 import java.awt.Container;
27 import java.awt.Rectangle;
28 import java.awt.Toolkit;
29
30 import javax.swing.JButton;
31 import javax.swing.JCheckBox;
32 import javax.swing.JTabbedPane;
33
34 import javax.swing.JFrame;
35 import javax.swing.SwingUtilities;
36 import javax.swing.UIManager;
37 import javax.swing.UIManager.LookAndFeelInfo;
38
39 /*
40 * @test
41 * @bug 7024235
42 * @summary Tests JFrame.pack() with the JTabbedPane
43 * @library ../../../../lib/testlibrary/
44 * @build ExtendedRobot
45 * @author Sergey Malenkov
46 * @run main Test7024235
47 */
48
49 public class Test7024235 implements Runnable {
50
51 private static final boolean AUTO = null != System.getProperty("test.src", null);
52
53 public static void main(String[] args) throws Exception {
54 Test7024235 test = new Test7024235();
55 for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
56 UIManager.setLookAndFeel(info.getClassName());
57
58 test.test();
59 try {
60 ExtendedRobot robot = new ExtendedRobot();
|
21 * questions.
22 */
23
24 import java.awt.BorderLayout;
25
26 import java.awt.Container;
27 import java.awt.Rectangle;
28 import java.awt.Toolkit;
29
30 import javax.swing.JButton;
31 import javax.swing.JCheckBox;
32 import javax.swing.JTabbedPane;
33
34 import javax.swing.JFrame;
35 import javax.swing.SwingUtilities;
36 import javax.swing.UIManager;
37 import javax.swing.UIManager.LookAndFeelInfo;
38
39 /*
40 * @test
41 * @key headful
42 * @bug 7024235
43 * @summary Tests JFrame.pack() with the JTabbedPane
44 * @library ../../../../lib/testlibrary/
45 * @build ExtendedRobot
46 * @author Sergey Malenkov
47 * @run main Test7024235
48 */
49
50 public class Test7024235 implements Runnable {
51
52 private static final boolean AUTO = null != System.getProperty("test.src", null);
53
54 public static void main(String[] args) throws Exception {
55 Test7024235 test = new Test7024235();
56 for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
57 UIManager.setLookAndFeel(info.getClassName());
58
59 test.test();
60 try {
61 ExtendedRobot robot = new ExtendedRobot();
|