< prev index next >

test/javax/swing/JTable/7188612/JTableAccessibleGetLocationOnScreen.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.


   8  *
   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  * Portions Copyright (c) 2012 IBM Corporation
  26  */
  27 
  28 /* @test


  29  * @bug 7188612
  30  * @summary AccessibleTableHeader and AccessibleJTableCell should stick to
  31  *    AccessibleComponent.getLocationOnScreen api.
  32  * @author Frank Ding
  33  */
  34 
  35 import javax.accessibility.AccessibleComponent;
  36 import javax.accessibility.AccessibleTable;
  37 import javax.swing.JComponent;
  38 import javax.swing.JFrame;
  39 import javax.swing.JTable;
  40 import javax.swing.SwingUtilities;
  41 
  42 public class JTableAccessibleGetLocationOnScreen {
  43     private static JFrame frame;
  44     private static JTable table;
  45 
  46     public static void main(String[] args) throws Exception {
  47 
  48         SwingUtilities.invokeAndWait(new Runnable() {




   8  *
   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  * Portions Copyright (c) 2012 IBM Corporation
  26  */
  27 
  28 /*
  29  * @test
  30  * @key headful
  31  * @bug 7188612
  32  * @summary AccessibleTableHeader and AccessibleJTableCell should stick to
  33  *    AccessibleComponent.getLocationOnScreen api.
  34  * @author Frank Ding
  35  */
  36 
  37 import javax.accessibility.AccessibleComponent;
  38 import javax.accessibility.AccessibleTable;
  39 import javax.swing.JComponent;
  40 import javax.swing.JFrame;
  41 import javax.swing.JTable;
  42 import javax.swing.SwingUtilities;
  43 
  44 public class JTableAccessibleGetLocationOnScreen {
  45     private static JFrame frame;
  46     private static JTable table;
  47 
  48     public static void main(String[] args) throws Exception {
  49 
  50         SwingUtilities.invokeAndWait(new Runnable() {


< prev index next >