-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
P5
-
None
-
Affects Version/s: 1.1
-
Component/s: client-libs
-
None
-
x86
-
windows_nt
Name: sgC58550 Date: 03/24/97
When a popup menu is save with a component, when the component is
read back with object serialization, the parent field of all popups are not set
to this.
A piece of code needs to be added to readObject:
if (popups != null && popups.size() > 0) {
for(int i = 0; i < popups.size(); i++) {
((PopupMenu)popups.elementAt(i)).parent = this;
}
}
This is the sample code that fixes the problem.
======================================================================
- duplicates
-
JDK-4047020 PopupMenu parents aren't restored when un-serialized
-
- Closed
-