src/share/classes/sun/swing/LightweightContent.java

Print this page

        

@@ -24,10 +24,11 @@
  */
 
 package sun.swing;
 
 import javax.swing.JComponent;
+import java.awt.Cursor;
 
 /**
  * The interface by means of which the {@link JLightweightFrame} class
  * communicates to its client application.
  * <p>

@@ -177,6 +178,15 @@
     /**
      * {@code JLightweightFrame} calls this method to notify the client
      * application that the content minimum size has changed.
      */
     public void minimumSizeChanged(int width, int height);
+
+    /**
+     * {@code JLightweightFrame} calls this method to notify the client
+     * application that in needs to set a cursor
+     * @param cursor a cursor to set
+     */
+    default public void setCursor(Cursor cursor) {
+        throw new UnsupportedOperationException("Wrong client version is used");
+    }
 }