< prev index next >

src/java.desktop/unix/classes/sun/awt/X11/InfoWindow.java

Print this page

        

@@ -69,10 +69,11 @@
     protected void setCloser(Runnable action, int time) {
         closer.set(action, time);
     }
 
     // Must be executed on EDT.
+    @SuppressWarnings("deprecation")
     protected void show(Point corner, int indent) {
         assert SunToolkit.isDispatchThreadForAppContext(this);
 
         pack();
 

@@ -96,10 +97,11 @@
 
         super.show();
         closer.schedule();
     }
 
+    @SuppressWarnings("deprecation")
     public void hide() {
         closer.close();
     }
 
     private class Closer implements Runnable {

@@ -123,10 +125,11 @@
             XToolkit.remove(this);
             doClose();
         }
 
         // WARNING: this method may be executed on Toolkit thread.
+        @SuppressWarnings("deprecation")
         private void doClose() {
             SunToolkit.executeOnEventHandlerThread(InfoWindow.this, new Runnable() {
                 public void run() {
                     InfoWindow.super.hide();
                     invalidate();
< prev index next >