CVSROOT: /cvsroot/classpath Module name: classpath Changes by: Roman Kennke <rabbit78> 06/08/02 23:06:00
Modified files: javax/swing : JMenu.java JPopupMenu.java Popup.java javax/swing/plaf/basic: BasicMenuItemUI.java BasicMenuUI.java . : ChangeLog Log message: 2006-08-02 Roman Kennke <[EMAIL PROTECTED]> PR 27624 * javax/swing/JMenu.java (JMenu()): Removed setting of delay. (JMenu(String)): Removed setting of delay. (JMenu(Action)): Removed setting of delay. (JMenu(String,boolean)): Removed setting of delay. (setSelectedHelper): Removed unneeded method. (setSelected): Simply set the model state. (setPopupMenuVisible): Recognize the popup location determined by getPopupMenuOrigin(). (getPopupMenuOrigin): Recognize the UI properties for X and Y offset. (menuSelectionChanged): Call setSelected() directly. * javax/swing/JPopupMenu.java (menuSelectionChanged): If invoker is a JMenu, then delegate to that to get the position right. * javax/swing/Popup.java (LightweightPopup.show): Insert the popup as first component in the layer, so that it overlaps it's caller. * javax/swing/plaf/basic/BasicMenuItemUI.java (getPath): Don't include the popup. * javax/swing/plaf/basic/BasicMenuUI.java (SelectMenuAction): New class. This invokes the popup when a menu is selected. (installDefaults): Install delay of 200 ms. (setupPostTimer): Implemented. (MouseInputHandler.mouseClicked): Do nothing here. (MouseInputHandler.mouseEntered): Use MenuSelectionManager magic to handle the selection. Open the menu via a timer. (MouseInputHandler.mousePressed): Use MenuSelectionManager magic to handle the selection. Open the menu via a timer. (MenuDragMouseHandler.menuMouseDragged): Probably use timer. (menuDragMouseEntered): Do nothing here. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/javax/swing/JMenu.java?cvsroot=classpath&r1=1.29&r2=1.30 http://cvs.savannah.gnu.org/viewcvs/classpath/javax/swing/JPopupMenu.java?cvsroot=classpath&r1=1.37&r2=1.38 http://cvs.savannah.gnu.org/viewcvs/classpath/javax/swing/Popup.java?cvsroot=classpath&r1=1.10&r2=1.11 http://cvs.savannah.gnu.org/viewcvs/classpath/javax/swing/plaf/basic/BasicMenuItemUI.java?cvsroot=classpath&r1=1.49&r2=1.50 http://cvs.savannah.gnu.org/viewcvs/classpath/javax/swing/plaf/basic/BasicMenuUI.java?cvsroot=classpath&r1=1.25&r2=1.26 http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.8301&r2=1.8302