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 /* @test
25 @bug 8072769
26 @summary System tray icon title freezes java
27 @author Semyon Sadetsky
28 @library ../../../../lib/testlibrary
29 @build jdk.testlibrary.OSInfo
30 */
31
32 import jdk.testlibrary.OSInfo;
33
34 import javax.swing.*;
35 import java.awt.*;
36 import java.util.Arrays;
37
38 public class bug8072769 {
39
40 public static void main(String[] args) throws Exception {
41 if (OSInfo.getOSType() == OSInfo.OSType.WINDOWS) {
42 if (SystemTray.isSupported()) {
43 test();
44 } else {
45 System.out.println("SystemTray not supported. " +
46 "Test is skipped.");
47 }
48 } else {
49 System.out.println("Test will only run on Windows platform. " +
|
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 /* @test
25 @bug 8072769
26 @summary System tray icon title freezes java
27 @author Semyon Sadetsky
28 @library ../../../../lib/testlibrary
29 @build jdk.testlibrary.OSInfo
30 @run main bug8072769
31 */
32
33 import jdk.testlibrary.OSInfo;
34
35 import javax.swing.*;
36 import java.awt.*;
37 import java.util.Arrays;
38
39 public class bug8072769 {
40
41 public static void main(String[] args) throws Exception {
42 if (OSInfo.getOSType() == OSInfo.OSType.WINDOWS) {
43 if (SystemTray.isSupported()) {
44 test();
45 } else {
46 System.out.println("SystemTray not supported. " +
47 "Test is skipped.");
48 }
49 } else {
50 System.out.println("Test will only run on Windows platform. " +
|