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 /*
25 @test
26 @bug 4632143
27 @summary Unit test for the RFE window/frame/dialog always on top
28 @author dom@sparc.spb.su: area=awt.toplevel
29 @run main AutoTestOnTop
30 */
31
32 import java.awt.*;
33 import java.awt.event.*;
34 import java.lang.reflect.*;
35 import javax.swing.*;
36 import java.util.Vector;
37
38 /**
39 * @author tav@sparc.spb.su
40 * @author dom@sparc.spb.su
41 * Tests that always-on-top windows combine correctly with different kinds of window in different styles and conditions.
42 *
43 * !!! WARNING !!!
44 * The test fails sometimes because the toFront() method doesn't guarantee
45 * that after its invocation the frame will be placed above all other windows.
46 */
47 public class AutoTestOnTop {
48 static Window topw;
|
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 /*
25 @test
26 @bug 4632143
27 @summary Unit test for the RFE window/frame/dialog always on top
28 @author dom@sparc.spb.su: area=awt.toplevel
29 @modules java.desktop/sun.awt
30 @run main AutoTestOnTop
31 */
32
33 import java.awt.*;
34 import java.awt.event.*;
35 import java.lang.reflect.*;
36 import javax.swing.*;
37 import java.util.Vector;
38
39 /**
40 * @author tav@sparc.spb.su
41 * @author dom@sparc.spb.su
42 * Tests that always-on-top windows combine correctly with different kinds of window in different styles and conditions.
43 *
44 * !!! WARNING !!!
45 * The test fails sometimes because the toFront() method doesn't guarantee
46 * that after its invocation the frame will be placed above all other windows.
47 */
48 public class AutoTestOnTop {
49 static Window topw;
|