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 import java.awt.BorderLayout;
24 import java.awt.Dialog;
25 import java.awt.EventQueue;
26 import java.awt.Frame;
27 import java.awt.TextArea;
28 import javax.swing.JApplet;
29 import javax.swing.JOptionPane;
30 import sun.awt.OSInfo;
31
32 /**
33 * @test
34 * @bug 8024926
35 * @summary [macosx] AquaIcon HiDPI support
36 * @author Alexander Scherbatiy
37 * @run applet/manual=yesno bug8024926.html
38 */
39 public class bug8024926 extends JApplet {
40 //Declare things used in the test, like buttons and labels here
41
42 public void init() {
43 //Create instructions for the user here, as well as set up
44 // the environment -- set the layout manager, add buttons,
45 // etc.
46 this.setLayout(new BorderLayout());
47
48
49 if (OSInfo.getOSType().equals(OSInfo.OSType.MACOSX)) {
50 String[] instructions = {
51 "Verify that high resolution system icons are used"
52 + " in JOptionPane on HiDPI displays.",
53 "1) Run the test on Retina display or enable the Quartz Debug"
54 + " and select the screen resolution with (HiDPI) label",
|
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 import java.awt.BorderLayout;
24 import java.awt.Dialog;
25 import java.awt.EventQueue;
26 import java.awt.Frame;
27 import java.awt.TextArea;
28 import javax.swing.JApplet;
29 import javax.swing.JOptionPane;
30 import sun.awt.OSInfo;
31
32 /**
33 * @test
34 * @bug 8024926 8040279
35 * @summary [macosx] AquaIcon HiDPI support
36 * @author Alexander Scherbatiy
37 * @run applet/manual=yesno bug8024926.html
38 */
39 public class bug8024926 extends JApplet {
40 //Declare things used in the test, like buttons and labels here
41
42 public void init() {
43 //Create instructions for the user here, as well as set up
44 // the environment -- set the layout manager, add buttons,
45 // etc.
46 this.setLayout(new BorderLayout());
47
48
49 if (OSInfo.getOSType().equals(OSInfo.OSType.MACOSX)) {
50 String[] instructions = {
51 "Verify that high resolution system icons are used"
52 + " in JOptionPane on HiDPI displays.",
53 "1) Run the test on Retina display or enable the Quartz Debug"
54 + " and select the screen resolution with (HiDPI) label",
|