CVSROOT: /cvsroot/classpath Module name: classpath Branch: Changes by: Roman Kennke <[EMAIL PROTECTED]> 06/03/17 15:37:02
Modified files: javax/swing/plaf/basic: BasicComboPopup.java . : ChangeLog Log message: 2006-03-17 Roman Kennke <[EMAIL PROTECTED]> * javax/swing/plaf/basic/BasicComboPopup.java (BasicComboPopup): Create listeners here. Configure components here. (show): Correctly calculate bounds using computePopupBounds(). Make scroller fixed-size. Removed special autocloser handling. (hide): Rewritten to use MenuSelectionHandler. (createList): Don't set selection mode here. (configureList): Correctly install colors and fonts and selectionMode. (createScroller): Set scrollpane policies. (configureScroller): Make scroller and scrollbar not-focusable. (configurePopup): Make popup opaque and borderPainted. (installComboBoxListeners): Don't install mouse listener on ComboBox. (delegateFocus): Implemented. (convertMouseEvent): Implemented. (updateListBoxSelectionForEvent): Implemented to also handle autoscrolling. (InvocationMouseHandler.mousePressed): Delegate focus correctly. Only open popup on left mouse-click. (InvocationMouseHandler.mouseReleased): Rewritten. (InvocationMouseMotionHandler.mouseDragged): Rewritten to better support autoscrolling. (ItemHandler.itemStateChanged): Implemented to sync selection with the comboBox. (ListMouseHandler.mouseReleased): Fetch selected index directly from list. (ListMouseMotionHandler.mouseMoved): Only update when mouse is inside the list box. (PropertyChangeHandler.propertyChange): Don't revalidate/repaint here. When model changes, then update listeners correctly. (uninstallListeners): Don't uninstall list listeners. (uninstallComboBoxListeners): Don't uninstall mouse listeners from comboBox. (syncSelection): New helper method. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/plaf/basic/BasicComboPopup.java.diff?tr1=1.14&tr2=1.15&r1=text&r2=text http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6778&tr2=1.6779&r1=text&r2=text