< prev index next >

test/jdk/javax/swing/Popup/TaskbarPositionTest.java

Print this page




  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 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;




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


< prev index next >