jdk/src/windows/classes/sun/awt/windows/WComponentPeer.java
changeset 2459 08f3416ff334
parent 2451 597df8e1d786
child 2462 192552ca8292
--- a/jdk/src/windows/classes/sun/awt/windows/WComponentPeer.java	Thu Feb 19 14:10:19 2009 +0300
+++ b/jdk/src/windows/classes/sun/awt/windows/WComponentPeer.java	Fri Feb 20 17:34:16 2009 +0300
@@ -59,7 +59,7 @@
 
 
 public abstract class WComponentPeer extends WObjectPeer
-    implements ComponentPeer, DropTargetPeer, DisplayChangedListener
+    implements ComponentPeer, DropTargetPeer
 {
     /**
      * Handle to native window
@@ -452,15 +452,8 @@
         }
     }
 
-    /**
-     * From the DisplayChangedListener interface.
-     *
-     * Called after a change in the display mode.  This event
-     * triggers replacing the surfaceData object (since that object
-     * reflects the current display depth information, which has
-     * just changed).
-     */
-    public void displayChanged() {
+    public void updateGraphicsData(GraphicsConfiguration gc) {
+        winGraphicsConfig = (Win32GraphicsConfig)gc;
         try {
             replaceSurfaceData();
         } catch (InvalidPipeException e) {
@@ -468,13 +461,6 @@
         }
     }
 
-    /**
-     * Part of the DisplayChangedListener interface: components
-     * do not need to react to this event
-     */
-    public void paletteChanged() {
-    }
-
     //This will return null for Components not yet added to a Container
     public ColorModel getColorModel() {
         GraphicsConfiguration gc = getGraphicsConfiguration();