src/solaris/classes/sun/awt/X11/XTrayIconPeer.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 499,508 ****
--- 499,509 ----
// ***************************************
// Special embedded frame for tray icon
// ***************************************
+ @SuppressWarnings("serial") // JDK-implementation class
private static class XTrayIconEmbeddedFrame extends XEmbeddedFrame {
public XTrayIconEmbeddedFrame(){
super(XToolkit.getDefaultRootWindow(), true, true);
}
*** 525,534 ****
--- 526,536 ----
// ***************************************
// Classes for painting an image on canvas
// ***************************************
+ @SuppressWarnings("serial") // JDK-implementation class
static class TrayIconCanvas extends IconCanvas {
TrayIcon target;
boolean autosize;
TrayIconCanvas(TrayIcon target, int width, int height) {
*** 546,555 ****
--- 548,558 ----
super.repaintImage(doClear || (old_autosize != autosize));
}
}
+ @SuppressWarnings("serial") // JDK-implementation class
public static class IconCanvas extends Canvas {
volatile Image image;
IconObserver observer;
int width, height;
int curW, curH;