src/share/classes/java/awt/Component.java
Print this page
@@ -656,12 +656,10 @@
private transient Object objectLock = new Object();
Object getObjectLock() {
return objectLock;
}
- boolean isPacked = false;
-
/**
* Pseudoparameter for direct Geometry API (setLocation, setBounds setSize
* to signal setBounds what's changing. Should be used under TreeLock.
* This is only needed due to the inability to change the cross-calling
* order of public and deprecated methods.
@@ -1554,12 +1552,10 @@
* @deprecated As of JDK version 1.1,
* replaced by <code>setVisible(boolean)</code>.
*/
@Deprecated
public void hide() {
- isPacked = false;
-
if (visible) {
clearCurrentFocusCycleRootOnHide();
clearMostRecentFocusOwnerOnHide();
synchronized (getTreeLock()) {
visible = false;
@@ -2112,14 +2108,10 @@
this.x = x;
this.y = y;
this.width = width;
this.height = height;
- if (resized) {
- isPacked = false;
- }
-
boolean needNotify = true;
mixOnReshaping();
if (peer != null) {
// LightwightPeer is an empty stub so can skip peer.reshape
if (!(peer instanceof LightweightPeer)) {