< prev index next >

test/jdk/java/awt/TrayIcon/InterJVMTest/InterJVM.java

Print this page




   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  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 /*
  25  * @test

  26  * @summary Check if TrayIcon added by a JVM is not visible
  27  *          in another JVM
  28  * @author Dmitriy Ermashov (dmitriy.ermashov@oracle.com)
  29  * @library ../../regtesthelpers/process/
  30  * @build ProcessResults ProcessCommunicator
  31  * @run main InterJVM
  32  */
  33 
  34 import test.java.awt.regtesthelpers.process.ProcessCommunicator;
  35 import test.java.awt.regtesthelpers.process.ProcessResults;
  36 
  37 import java.awt.*;
  38 import java.awt.image.BufferedImage;
  39 
  40 public class InterJVM {
  41 
  42     static String NEW_JVM = "-doTest";
  43 
  44     public static void main(String[] args) throws Exception {
  45         if (! SystemTray.isSupported()) {




   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  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 /*
  25  * @test
  26  * @key headful
  27  * @summary Check if TrayIcon added by a JVM is not visible
  28  *          in another JVM
  29  * @author Dmitriy Ermashov (dmitriy.ermashov@oracle.com)
  30  * @library ../../regtesthelpers/process/
  31  * @build ProcessResults ProcessCommunicator
  32  * @run main InterJVM
  33  */
  34 
  35 import test.java.awt.regtesthelpers.process.ProcessCommunicator;
  36 import test.java.awt.regtesthelpers.process.ProcessResults;
  37 
  38 import java.awt.*;
  39 import java.awt.image.BufferedImage;
  40 
  41 public class InterJVM {
  42 
  43     static String NEW_JVM = "-doTest";
  44 
  45     public static void main(String[] args) throws Exception {
  46         if (! SystemTray.isSupported()) {


< prev index next >