public AbstractButton getButtonIn ( Container container ) { Iterator it = buttonIterator ( ) ; while ( it . hasNext ( ) ) { AbstractButton button = ( AbstractButton ) it . next ( ) ; if ( SwingUtilities . isDescendingFrom ( button , container ) ) { return button ; } } return null ; }
Search for the first button of this command that is a child component of the given container .