< prev index next >
test/jdk/java/awt/Choice/PopupPosTest/PopupPosTest.java
Print this page
*** 20,48 ****
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
! test
@bug 5044150
@summary Tests that pupup doesn't popdown if no space to display under
- @author andrei.dmitriev area=awt.choice
@library /test/lib
@build jdk.test.lib.Platform
! @run applet PopupPosTest.html
*/
- import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
import jdk.test.lib.Platform;
! public class PopupPosTest extends Applet
! {
! public void start ()
! {
if (Platform.isOSX()) {
// On OS X, popup isn't under the mouse
return;
}
Frame frame = new TestFrame();
--- 20,46 ----
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
! @test
! @key headful
@bug 5044150
@summary Tests that pupup doesn't popdown if no space to display under
@library /test/lib
@build jdk.test.lib.Platform
! @run main PopupPosTest
*/
import java.awt.*;
import java.awt.event.*;
import jdk.test.lib.Platform;
! public class PopupPosTest {
!
! public static void main(final String[] args) {
if (Platform.isOSX()) {
// On OS X, popup isn't under the mouse
return;
}
Frame frame = new TestFrame();
< prev index next >