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.Dimension; 25 import javax.swing.*; 26 27 /** 28 * AWT/Swing overlapping test for {@link javax.swing.JSlider } component. 29 * <p>See base class for details. 30 */ 31 /* 32 @test 33 @summary Simple Overlapping test for javax.swing.JSlider 34 @author sergey.grinev@oracle.com: area=awt.mixing 35 @run main JSliderOverlapping 36 */ 37 public class JSliderOverlapping extends SimpleOverlappingTestBase { 38 39 @Override 40 protected JComponent getSwingComponent() { 41 JSlider ch = new JSlider(); 42 ch.setPreferredSize(new Dimension(50, 50)); 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 JSliderOverlapping(); 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 import java.awt.Dimension; 25 import javax.swing.*; 26 27 /** 28 * AWT/Swing overlapping test for {@link javax.swing.JSlider } component. 29 * <p>See base class for details. 30 */ 31 /* 32 @test 33 @summary Simple Overlapping test for javax.swing.JSlider 34 @author sergey.grinev@oracle.com: area=awt.mixing 35 @library ../../regtesthelpers 36 @build Util 37 @run main JSliderOverlapping 38 */ 39 public class JSliderOverlapping extends SimpleOverlappingTestBase { 40 41 @Override 42 protected JComponent getSwingComponent() { 43 JSlider ch = new JSlider(); 44 ch.setPreferredSize(new Dimension(50, 50)); 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 JSliderOverlapping(); 51 OverlappingTestBase.doMain(args); 52 } 53 } |