On Mon, 14 Sep 2020 09:30:22 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> 
wrote:

> Please review a fix for an issue where it is seen that even though Box.Filler 
> components are invisible components that
> are created by Box methods to return struts and glue, they ( Box.Filler 
> instances) are focusable by default. As a
> consequence, they become members of the implicitly created focus traversal 
> policies, which means that their existence
> as components can be seen by users.  Proposed fix is to make this Filler 
> components unfocusable by default.  All
> automated headful tests and JCK tests are unaffected by these.

test/jdk/javax/swing/Box/TestBoxFiller.java line 71:

> 69:                 frame.setContentPane(box);
> 70:                 frame.setFocusTraversalPolicy(new 
> ContainerOrderFocusTraversalPolicy());
> 71:                 frame.pack();

Please move it to the center of the screen.

-------------

PR: https://git.openjdk.java.net/jdk/pull/149

Reply via email to