src/share/classes/javax/swing/plaf/metal/MetalComboBoxUI.java

Print this page




 350 
 351         cachedMinimumSize.setSize( size.width, size.height );
 352         isMinimumSizeDirty = false;
 353 
 354         return new Dimension( cachedMinimumSize );
 355     }
 356 
 357     /**
 358      * This class should be treated as a "protected" inner class.
 359      * Instantiate it only within subclasses of {@code MetalComboBoxUI}.
 360      *
 361      * This class is now obsolete and doesn't do anything and
 362      * is only included for backwards API compatibility. Do not call or
 363      * override.
 364      *
 365      * @deprecated As of Java 2 platform v1.4.
 366      */
 367     @Deprecated
 368     public class MetalComboPopup extends BasicComboPopup {
 369 
 370         public MetalComboPopup( JComboBox cBox) {
 371             super( cBox );
 372         }
 373 
 374         // This method was overloaded and made public. This was probably
 375         // mistake in the implementation. The functionality that they used to
 376         // provide is no longer necessary and should be removed. However,
 377         // removing them will create an uncompatible API change.
 378 
 379         public void delegateFocus(MouseEvent e) {
 380             super.delegateFocus(e);
 381         }
 382     }
 383 }


 350 
 351         cachedMinimumSize.setSize( size.width, size.height );
 352         isMinimumSizeDirty = false;
 353 
 354         return new Dimension( cachedMinimumSize );
 355     }
 356 
 357     /**
 358      * This class should be treated as a "protected" inner class.
 359      * Instantiate it only within subclasses of {@code MetalComboBoxUI}.
 360      *
 361      * This class is now obsolete and doesn't do anything and
 362      * is only included for backwards API compatibility. Do not call or
 363      * override.
 364      *
 365      * @deprecated As of Java 2 platform v1.4.
 366      */
 367     @Deprecated
 368     public class MetalComboPopup extends BasicComboPopup {
 369 
 370         public MetalComboPopup( JComboBox<Object> cBox) {
 371             super( cBox );
 372         }
 373 
 374         // This method was overloaded and made public. This was probably
 375         // mistake in the implementation. The functionality that they used to
 376         // provide is no longer necessary and should be removed. However,
 377         // removing them will create an uncompatible API change.
 378 
 379         public void delegateFocus(MouseEvent e) {
 380             super.delegateFocus(e);
 381         }
 382     }
 383 }