< prev index next >

test/java/awt/image/multiresolution/MultiResolutionTrayIconTest/MultiResolutionTrayIconTest.java

Print this page




   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 /*
  26   @test
  27   @bug 8150176
  28   @ignore 8150176
  29   @summary Check if correct resolution variant is used for tray icon.
  30   @author a.stepanov
  31   @run applet/manual=yesno MultiResolutionTrayIconTest.html
  32 */
  33 
  34 
  35 import java.applet.Applet;
  36 import java.awt.*;
  37 import java.awt.event.*;
  38 import java.awt.image.*;
  39 
  40 
  41 public class MultiResolutionTrayIconTest extends Applet {
  42 
  43     private SystemTray tray;
  44     private TrayIcon   icon, iconMRI;
  45 
  46     public void init() { this.setLayout(new BorderLayout()); }
  47 
  48     public void start() {




   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 /*
  26   @test
  27   @bug 8150176 8151773

  28   @summary Check if correct resolution variant is used for tray icon.
  29   @author a.stepanov
  30   @run applet/manual=yesno MultiResolutionTrayIconTest.html
  31 */
  32 
  33 
  34 import java.applet.Applet;
  35 import java.awt.*;
  36 import java.awt.event.*;
  37 import java.awt.image.*;
  38 
  39 
  40 public class MultiResolutionTrayIconTest extends Applet {
  41 
  42     private SystemTray tray;
  43     private TrayIcon   icon, iconMRI;
  44 
  45     public void init() { this.setLayout(new BorderLayout()); }
  46 
  47     public void start() {


< prev index next >