* java/awt/Window.java (show): validate() before showing. Make
parent displayable.
(isDisplayable): New method.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58961
138bc75d-0d04-0410-961f-
82ee72b054a4
+2002-11-09 Tom Tromey <tromey@redhat.com>
+
+ * java/awt/List.java (processEvent): Added missing `else's.
+
+ * java/awt/Window.java (show): validate() before showing. Make
+ parent displayable.
+ (isDisplayable): New method.
+
2002-11-07 Mark Wielaard <mark@klomp.org>
Merge Orp RMI patches from Wu Gansha <gansha.wu@intel.com>
{
if (event instanceof ActionEvent)
processActionEvent((ActionEvent)event);
- if (event instanceof ItemEvent)
+ else if (event instanceof ItemEvent)
processItemEvent((ItemEvent)event);
-
- super.processEvent(event);
+ else
+ super.processEvent(event);
}
/*************************************************************************/
*/
public void pack()
{
- if (parent != null
- && !parent.isDisplayable())
+ if (parent != null && !parent.isDisplayable())
parent.addNotify();
if (peer == null)
addNotify();
setSize(getPreferredSize());
-
+
validate();
}
*/
public void show()
{
+ if (parent != null && !parent.isDisplayable())
+ parent.addNotify();
if (peer == null)
addNotify();
+ validate();
super.show();
toFront();
}
super.hide();
}
+ public boolean isDisplayable()
+ {
+ if (super.isDisplayable())
+ return true;
+ return peer != null;
+ }
+
/**
* Called to free any resource associated with this window.
*/
if (peer != null) return peer.getGraphicsConfiguration();
return null;
}
-
}