< prev index next >
src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsPopupWindow.java
Print this page
@@ -76,10 +76,11 @@
public void update(Graphics g) {
paint(g);
}
+ @SuppressWarnings("deprecation")
public void hide() {
super.hide();
/** We need to call removeNotify() here because hide() does
* something only if Component.visible is true. When the app
* frame is miniaturized, the parent frame of this frame is
@@ -87,10 +88,11 @@
* is invisible and causing hide() to do nothing
*/
removeNotify();
}
+ @SuppressWarnings("deprecation")
public void show() {
super.show();
this.pack();
}
}
< prev index next >