Should disable item be navigable? (original) (raw)

Charles Lee littlee at linux.vnet.ibm.com
Wed Mar 30 04:55:48 UTC 2011


On 03/30/2011 02:02 AM, Alexander Potochkin wrote:

Hello Charles

On 03/28/2011 10:46 PM, Alexander Potochkin wrote:

Hello Charles

Hi guys,

Are there some spec about the navigable? Should disable item be navigable? I have notice, in the src/share/classes/com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java, line 1000: "MenuItem.disabledAreNavigable", Boolean.TRUE, Should it to be FALSE as default? It is dependent on a particular LaF, in native Windows applications disabled menu items can be selected So if the native is supporting the navigation of disabled menu, the flag will be set TRUE as default? Let's make it this way: I run SwingSet2 with default LaF and checked that disabled menu items in the File menu (Open, Save and Save as) are not selectable then I switched to Windows LaF and now they are selectable do you see any problems here? Thanks alexp Thanks alexp

Hi alexp, Starting SwingSet2 with default Laf, I have seen DisableUnselectable.jpg (attached) and after changing it to Windows Laf, I have seen DisableSelectable.jpg (attached). Because windows support Navigation on the disable item, (see windowsNativeBehavior.jpg attached), so Java also follow this behavior on the disable item with windows LaF. Am I right?

Thanks.

-------------- next part -------------- A non-text attachment was scrubbed... Name: jpgs.tar.gz Type: application/x-gzip Size: 227121 bytes Desc: not available URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20110330/d71c1889/jpgs.tar.gz>



More information about the swing-dev mailing list