boolean () { myList.addMouseMotionListener(myMouseMotionListener); myList.addMouseListener(myMouseListener); boolean shouldShow = super.beforeShow(); if (myAutoHandleBeforeShow) { boolean toDispose = tryToAutoSelect(true); shouldShow &= !toDispose; } return shouldShow; }