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 /*
25 test
26 @bug 4962534 7104594
27 @summary JFrame dances very badly
28 @author dav@sparc.spb.su area=
29 @run applet bug4962534.html
30 */
31 import java.applet.Applet;
32 import java.awt.*;
33 import java.awt.event.*;
34 import java.util.Random;
35 import javax.swing.*;
36
37 public class bug4962534 extends Applet {
38
39 Robot robot;
40 volatile Point framePosition;
41 volatile Point newFrameLocation;
42 JFrame frame;
43 Rectangle gcBounds;
44 Component titleComponent;
45 JLayeredPane lPane;
46 volatile boolean titleFound = false;
47 public static Object LOCK = new Object();
48
49 @Override
|
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 /*
25 test
26 @bug 4962534 7104594
27 @summary JFrame dances very badly
28 @author dav@sparc.spb.su area=
29 @run applet bug4962534.html
30 @key randomness
31 */
32 import java.applet.Applet;
33 import java.awt.*;
34 import java.awt.event.*;
35 import java.util.Random;
36 import javax.swing.*;
37
38 public class bug4962534 extends Applet {
39
40 Robot robot;
41 volatile Point framePosition;
42 volatile Point newFrameLocation;
43 JFrame frame;
44 Rectangle gcBounds;
45 Component titleComponent;
46 JLayeredPane lPane;
47 volatile boolean titleFound = false;
48 public static Object LOCK = new Object();
49
50 @Override
|