src/solaris/classes/sun/awt/X11/InfoWindow.java

Print this page

        

@@ -37,10 +37,11 @@
 import java.lang.reflect.InvocationTargetException;
 
 /**
  * An utility window class. This is a base class for Tooltip and Balloon.
  */
+@SuppressWarnings("serial") // JDK-implementation class
 public abstract class InfoWindow extends Window {
     private Container container;
     private Closer closer;
 
     protected InfoWindow(Frame parent, Color borderColor) {

@@ -144,10 +145,11 @@
 
         /** The bounds of the target of the InfoWindow. */
         Rectangle getBounds();
     }
 
+    @SuppressWarnings("serial") // JDK-implementation class
     public static class Tooltip extends InfoWindow {
 
         public interface LiveArguments extends InfoWindow.LiveArguments {
             /** The tooltip to be displayed. */
             String getTooltipString();

@@ -237,10 +239,11 @@
             return !(p.x < trayRect.x || p.x > (trayRect.x + trayRect.width) ||
                      p.y < trayRect.y || p.y > (trayRect.y + trayRect.height));
         }
     }
 
+    @SuppressWarnings("serial") // JDK-implementation class
     public static class Balloon extends InfoWindow {
 
         public interface LiveArguments extends InfoWindow.LiveArguments {
             /** The action to be performed upon clicking the baloon. */
             String getActionCommand();