< prev index next >

test/javax/swing/Popup/TaskbarPositionTest.java

Print this page
rev 14031 : 8160974: [TESTBUG] Mark more headful tests with @key headful.

This is a backport of fe58d505fffd from jdk9. 228/596 hunks apply without
modifications. 16 hunks required manual rework. The remainder were for files
not present in jdk8u.


  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 import java.awt.*;
  25 import java.awt.event.*;
  26 import javax.swing.*;
  27 import javax.swing.event.*;
  28 
  29 /**
  30  * @test @bug 4245587 4474813 4425878 4767478 8015599

  31  * @author Mark Davidson
  32  * @summary Tests the location of the heavy weight popup portion of JComboBox,
  33  * JMenu and JPopupMenu.
  34  * @library ../regtesthelpers
  35  * @build Util
  36  * @run main TaskbarPositionTest
  37  */
  38 public class TaskbarPositionTest extends JFrame implements ActionListener {
  39 
  40     private boolean done;
  41     private Throwable error;
  42     private static TaskbarPositionTest test;
  43     private static JPopupMenu popupMenu;
  44     private static JPanel panel;
  45     private static JComboBox<String> combo1;
  46     private static JComboBox<String> combo2;
  47     private static JMenuBar menubar;
  48     private static JMenu menu1;
  49     private static JMenu menu2;
  50     private static Rectangle fullScreenBounds;




  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 import java.awt.*;
  25 import java.awt.event.*;
  26 import javax.swing.*;
  27 import javax.swing.event.*;
  28 
  29 /**
  30  * @test @bug 4245587 4474813 4425878 4767478 8015599
  31  * @key headful
  32  * @author Mark Davidson
  33  * @summary Tests the location of the heavy weight popup portion of JComboBox,
  34  * JMenu and JPopupMenu.
  35  * @library ../regtesthelpers
  36  * @build Util
  37  * @run main TaskbarPositionTest
  38  */
  39 public class TaskbarPositionTest extends JFrame implements ActionListener {
  40 
  41     private boolean done;
  42     private Throwable error;
  43     private static TaskbarPositionTest test;
  44     private static JPopupMenu popupMenu;
  45     private static JPanel panel;
  46     private static JComboBox<String> combo1;
  47     private static JComboBox<String> combo2;
  48     private static JMenuBar menubar;
  49     private static JMenu menu1;
  50     private static JMenu menu2;
  51     private static Rectangle fullScreenBounds;


< prev index next >