test/java/awt/Mixing/AWT_Mixing/JTableInGlassPaneOverlapping.java

Print this page




  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 import javax.swing.JComponent;
  26 import javax.swing.JTable;
  27 import javax.swing.event.TableModelEvent;
  28 import javax.swing.event.TableModelListener;
  29 
  30 /**
  31  * AWT/Swing overlapping test for {@link javax.swing.JTable } component in GlassPane.
  32  * <p>See base class for details.
  33  */
  34 /*
  35 @test
  36 @summary Simple Overlapping test for JTable
  37 @author sergey.grinev@oracle.com: area=awt.mixing


  38 @run main JTableInGlassPaneOverlapping
  39  */
  40 public class JTableInGlassPaneOverlapping extends GlassPaneOverlappingTestBase {
  41 
  42     {
  43         testResize = false;
  44     }
  45 
  46     @Override
  47     protected JComponent getSwingComponent() {
  48         // Create columns names
  49         String columnNames[] = {"Column 1", "Column 2", "Column 3"};
  50 
  51         // Create some data
  52         String dataValues[][] = {
  53             {"12", "234", "67"},
  54             {"-123", "43", "853"},
  55             {"93", "89.2", "109"},
  56             {"279", "9033", "3092"},
  57             {"12", "234", "67"},




  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 import javax.swing.JComponent;
  26 import javax.swing.JTable;
  27 import javax.swing.event.TableModelEvent;
  28 import javax.swing.event.TableModelListener;
  29 
  30 /**
  31  * AWT/Swing overlapping test for {@link javax.swing.JTable } component in GlassPane.
  32  * <p>See base class for details.
  33  */
  34 /*
  35 @test
  36 @summary Simple Overlapping test for JTable
  37 @author sergey.grinev@oracle.com: area=awt.mixing
  38 @library ../../regtesthelpers
  39 @build Util
  40 @run main JTableInGlassPaneOverlapping
  41  */
  42 public class JTableInGlassPaneOverlapping extends GlassPaneOverlappingTestBase {
  43 
  44     {
  45         testResize = false;
  46     }
  47 
  48     @Override
  49     protected JComponent getSwingComponent() {
  50         // Create columns names
  51         String columnNames[] = {"Column 1", "Column 2", "Column 3"};
  52 
  53         // Create some data
  54         String dataValues[][] = {
  55             {"12", "234", "67"},
  56             {"-123", "43", "853"},
  57             {"93", "89.2", "109"},
  58             {"279", "9033", "3092"},
  59             {"12", "234", "67"},