<Swing Dev> Should disable item be navigable?
Alexander Potochkin
Alexander.Potochkin at oracle.com
Tue Mar 29 18:02:18 UTC 2011
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
>
More information about the swing-dev
mailing list