< prev index next >

src/java.desktop/share/classes/com/sun/java/swing/SwingUtilities3.java

Print this page

        

*** 86,95 **** --- 86,96 ---- * * @param rootContainer topmost container. Should be either {@code Window} * or {@code Applet} * @param isRequested the value to set vsyncRequested state to */ + @SuppressWarnings("deprecation") public static void setVsyncRequested(Container rootContainer, boolean isRequested) { assert (rootContainer instanceof Applet) || (rootContainer instanceof Window); if (isRequested) { vsyncedMap.put(rootContainer, Boolean.TRUE);
*** 102,111 **** --- 103,113 ---- * Checks if vsync painting is requested for {@code rootContainer} * * @param rootContainer topmost container. Should be either Window or Applet * @return {@code true} if vsync painting is requested for {@code rootContainer} */ + @SuppressWarnings("deprecation") public static boolean isVsyncRequested(Container rootContainer) { assert (rootContainer instanceof Applet) || (rootContainer instanceof Window); return Boolean.TRUE == vsyncedMap.get(rootContainer); }
< prev index next >