jdk/src/java.desktop/windows/classes/sun/awt/Win32GraphicsDevice.java
changeset 28234 f694f2576719
parent 25859 3317bb8137f4
child 30469 bac0a7ff7e1e
equal deleted inserted replaced
28233:9dc3764ed475 28234:f694f2576719
   327     public boolean isFullScreenSupported() {
   327     public boolean isFullScreenSupported() {
   328         return isFSExclusiveModeAllowed();
   328         return isFSExclusiveModeAllowed();
   329     }
   329     }
   330 
   330 
   331     @Override
   331     @Override
       
   332     @SuppressWarnings("deprecation")
   332     public synchronized void setFullScreenWindow(Window w) {
   333     public synchronized void setFullScreenWindow(Window w) {
   333         Window old = getFullScreenWindow();
   334         Window old = getFullScreenWindow();
   334         if (w == old) {
   335         if (w == old) {
   335             return;
   336             return;
   336         }
   337         }
   402     public boolean isDisplayChangeSupported() {
   403     public boolean isDisplayChangeSupported() {
   403         return (isFullScreenSupported() && getFullScreenWindow() != null);
   404         return (isFullScreenSupported() && getFullScreenWindow() != null);
   404     }
   405     }
   405 
   406 
   406     @Override
   407     @Override
       
   408     @SuppressWarnings("deprecation")
   407     public synchronized void setDisplayMode(DisplayMode dm) {
   409     public synchronized void setDisplayMode(DisplayMode dm) {
   408         if (!isDisplayChangeSupported()) {
   410         if (!isDisplayChangeSupported()) {
   409             super.setDisplayMode(dm);
   411             super.setDisplayMode(dm);
   410             return;
   412             return;
   411         }
   413         }