test/java/awt/Mixing/AWT_Mixing/JButtonInGlassPaneOverlapping.java

Print this page




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


  35 @run main JButtonInGlassPaneOverlapping
  36  */
  37 public class JButtonInGlassPaneOverlapping extends GlassPaneOverlappingTestBase {
  38 
  39     @Override
  40     protected JComponent getSwingComponent() {
  41         JButton ch = new JButton();
  42         ch.setText("Swing component");
  43         return ch;
  44     }
  45 
  46     // this strange plumbing stuff is required due to "Standard Test Machinery" in base class
  47     public static void main(String args[]) throws InterruptedException {
  48         instance = new JButtonInGlassPaneOverlapping();
  49         OverlappingTestBase.doMain(args);
  50     }
  51 }


  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 import javax.swing.*;
  26 
  27 /**
  28  * AWT/Swing overlapping test for {@link javax.swing.JButton } component in GlassPane.
  29  * <p>See base class for details.
  30  */
  31 /*
  32 @test
  33 @summary Simple Overlapping test for javax.swing.JButton
  34 @author sergey.grinev@oracle.com: area=awt.mixing
  35 @library ../../regtesthelpers
  36 @build Util
  37 @run main JButtonInGlassPaneOverlapping
  38  */
  39 public class JButtonInGlassPaneOverlapping extends GlassPaneOverlappingTestBase {
  40 
  41     @Override
  42     protected JComponent getSwingComponent() {
  43         JButton ch = new JButton();
  44         ch.setText("Swing component");
  45         return ch;
  46     }
  47 
  48     // this strange plumbing stuff is required due to "Standard Test Machinery" in base class
  49     public static void main(String args[]) throws InterruptedException {
  50         instance = new JButtonInGlassPaneOverlapping();
  51         OverlappingTestBase.doMain(args);
  52     }
  53 }