src/windows/classes/sun/awt/windows/WChoicePeer.java

Print this page

        

@@ -82,10 +82,11 @@
         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,10 +115,11 @@
             }
         }
         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) {