< prev index next >
src/java.desktop/share/classes/sun/swing/JLightweightFrame.java
Print this page
@@ -239,10 +239,11 @@
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,10 +259,11 @@
}
repaint();
}
@Override
+ @SuppressWarnings("deprecation")
public void addNotify() {
super.addNotify();
if (getPeer() instanceof DisplayChangedListener) {
((DisplayChangedListener)getPeer()).displayChanged();
}
< prev index next >