< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/basic/BasicComboBoxUI.java

Print this page

        

@@ -1837,10 +1837,11 @@
 
         // This listener checks to see if the key event isn't a navigation
         // key.  If it finds a key event that wasn't a navigation key it
         // dispatches it to JComboBox.selectWithKeyChar() so that it can do
         // type-ahead.
+        @SuppressWarnings("deprecation")
         public void keyPressed( KeyEvent e ) {
             if ( isNavigationKey(e.getKeyCode(), e.getModifiers()) ) {
                 lastTime = 0L;
             } else if ( comboBox.isEnabled() && comboBox.getModel().getSize()!=0 &&
                         isTypeAheadKey( e ) && e.getKeyChar() != KeyEvent.CHAR_UNDEFINED) {
< prev index next >