<Swing Dev> [Accessibility]Focus unable to traverse in the menubar

Neil Richards neil.richards at ngmr.net
Tue Sep 20 12:44:29 UTC 2011


On Mon, 2011-09-19 at 13:52 +0400, Pavel Porvatov wrote:
> Hi Jing,
> 
> I can't agree with you about the problem. According to 
> http://download.oracle.com/javase/tutorial/uiswing/components/menu.html 
> "Menus are unique in that, by convention, they aren't placed with the 
> other components in the UI". Instead, a menu usually appears either in a 
> menu bar or as a popup menu", so your test-case is invalid.

Hi Pavel,
I'm not sure I understand your objection to the testcase.

As you can see from the testcase code, the JMenu component _is_ held by
a JMenuBar component, in concordance with the documentation you point
to.

Perhaps you're worried that the physical layout of the components in the
panel materially affects the nature of the problem being reported ?

If so, please consider the modified testcase in an update to the webrev
I previously posted [2].

The modification uses the BorderLayout manager instead of GridLayout,
adding the JMenuBar so that it appears at the top of the panel.

You'll notice that this rearrangement in physical layout does not change
the nature of the problem being reported.

Hope this helps to clarify things,
Regards, Neil

-- 
Unless stated above:
IBM email: neil_richards at uk.ibm.com
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU




More information about the swing-dev mailing list