< prev index next >
src/java.desktop/share/classes/sun/swing/JLightweightFrame.java
Print this page
*** 239,248 ****
--- 239,249 ----
public int getScaleFactor() {
return scaleFactor;
}
@Override
+ @SuppressWarnings("deprecation")
public void notifyDisplayChanged(final int scaleFactor) {
if (scaleFactor != this.scaleFactor) {
if (!copyBufferEnabled) content.paintLock();
try {
if (bbImage != null) {
*** 258,267 ****
--- 259,269 ----
}
repaint();
}
@Override
+ @SuppressWarnings("deprecation")
public void addNotify() {
super.addNotify();
if (getPeer() instanceof DisplayChangedListener) {
((DisplayChangedListener)getPeer()).displayChanged();
}
< prev index next >