src/windows/classes/sun/awt/windows/WChoicePeer.java
Print this page
*** 82,91 ****
--- 82,92 ----
super(target);
}
native void create(WComponentPeer parent);
+ @SuppressWarnings("deprecation")
void initialize() {
Choice opt = (Choice)target;
int itemCount = opt.getItemCount();
if (itemCount > 0) {
String[] items = new String[itemCount];
*** 114,123 ****
--- 115,125 ----
}
}
super.initialize();
}
+ @SuppressWarnings("deprecation")
protected void disposeImpl() {
// TODO: we should somehow reset the listener when the choice
// is moved to another toplevel without destroying its peer.
Window parentWindow = SunToolkit.getContainingWindow((Component)target);
if (parentWindow != null) {