< prev index next >
src/java.desktop/share/classes/javax/swing/plaf/basic/BasicComboPopup.java
Print this page
@@ -221,10 +221,11 @@
//
/**
* Implementation of ComboPopup.show().
*/
+ @SuppressWarnings("deprecation")
public void show() {
comboBox.firePopupMenuWillBecomeVisible();
setListSelection(comboBox.getSelectedIndex());
Point location = getPopupLocation();
show( comboBox, location.x, location.y );
@@ -232,10 +233,11 @@
/**
* Implementation of ComboPopup.hide().
*/
+ @SuppressWarnings("deprecation")
public void hide() {
MenuSelectionManager manager = MenuSelectionManager.defaultManager();
MenuElement [] selection = manager.getSelectedPath();
for ( int i = 0 ; i < selection.length ; i++ ) {
if ( selection[i] == this ) {
@@ -1030,10 +1032,11 @@
/**
* Overridden to unconditionally return false.
*/
+ @SuppressWarnings("deprecation")
public boolean isFocusTraversable() {
return false;
}
//===================================================================
< prev index next >