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 /*
25 * @test
26 * @key headful
27 * @summary Make sure that on changing state of Undecorated Frame,
28 * all the components on it are repainted correctly
29 * @author Jitender(jitender.singh@eng.sun.com) area=AWT
30 * @author yan
31 * @library ../../../../lib/testlibrary
32 * @build ExtendedRobot
33 * @run main RepaintTest
34 */
35
36 import java.awt.*;
37 import java.awt.event.*;
38 import javax.swing.JFrame;
39 import javax.swing.JButton;
40 import javax.swing.JTextField;
41 import javax.swing.JPanel;
42 import java.io.*;
43 import java.awt.image.*;
44
45 public class RepaintTest {
46 private static int delay = 150;
47
48 private Frame frame;
49 private Container panel1, panel2;
50 private Component button;
51 private Component textField;
|
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 /*
25 * @test
26 * @key headful
27 * @summary Make sure that on changing state of Undecorated Frame,
28 * all the components on it are repainted correctly
29 * @author Jitender(jitender.singh@eng.sun.com) area=AWT
30 * @author yan
31 * @library ../../../../lib/client
32 * @build ExtendedRobot
33 * @run main RepaintTest
34 */
35
36 import java.awt.*;
37 import java.awt.event.*;
38 import javax.swing.JFrame;
39 import javax.swing.JButton;
40 import javax.swing.JTextField;
41 import javax.swing.JPanel;
42 import java.io.*;
43 import java.awt.image.*;
44
45 public class RepaintTest {
46 private static int delay = 150;
47
48 private Frame frame;
49 private Container panel1, panel2;
50 private Component button;
51 private Component textField;
|