|
From: | cvs-commit at developer dot classpath dot org |
Subject: | [Bug swing/23527] JMenu with shortcut/accelerator looks bad |
Date: | 29 Mar 2006 14:23:31 -0000 |
------- Comment #13 from cvs-commit at developer dot classpath dot org 2006-03-29 14:23 ------- Subject: Bug 23527 CVSROOT: /cvsroot/classpath Module name: classpath Branch: Changes by: Roman Kennke <address@hidden> 06/03/29 14:22:41 Modified files: . : ChangeLog javax/swing/plaf/basic: BasicMenuItemUI.java Log message: 2006-03-29 Roman Kennke <address@hidden> PR 23527 * javax/swing/plaf/basic/BasicMenuItemUI.java (cachedRect): New field. (BasicMenuItemUI): Initialize cachedRect field. (getPreferredMenuItemSize): Use layoutMenuItem() helper method to determine layout. Store maximum accelerator and text width in client properties of parent to allow correct alignment of accelerators among menu items of one menu. (paintMenuItem): Outsourced menu item layout into layoutMenuItem method. Align accelerators according to the values calculated in getPreferredMenuItemSize. (getAcceleratorString) New helper method. (layoutMenuItem): New helper method. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6939&tr2=1.6940&r1=text&r2=text http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/plaf/basic/BasicMenuItemUI.java.diff?tr1=1.45&tr2=1.46&r1=text&r2=text -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23527
[Prev in Thread] | Current Thread | [Next in Thread] |