[7u6] request for review: 7124328: [macosx] javax.swing.JDesktopPane.getAllFramesInLayer returns unexpected value (original) (raw)

Artem Ananiev artem.ananiev at oracle.com
Tue Apr 24 05:38:33 PDT 2012


On 4/23/2012 11:09 PM, Alexander Potochkin wrote:

Hello Artem

Hi, Alex,

the fix looks fine. Just a minor comment: I would use LinkedList instead of ArrayList as the type of "results" as this collection is mostly used to add elements: this operation is faster in linked lists than in array ones. The second version of the fix (approved by Anthony) also uses the list to remove the elements in one case

add/remove are of the same kind :) Anyway, I'm leaving it up to you. The fix looks fine.

Thanks,

Artem

so I guess it is fine to use ArrayList here

Thanks alexp

Thanks, Artem On 4/10/2012 9:25 PM, Alexander Potochkin wrote: Hello

Please review the following fix: http://cr.openjdk.java.net/~alexp/7124328/webrev.00/ for this bug: http://bugs.sun.com/bugdatabase/viewbug.do?bugid=7124328 the spec for the method javax.swing.JDesktopPane.getAllFrames() says * Returns all JInternalFrames currently displayed in the * desktop. Returns iconified frames as well as expanded frames. but the AquaLookAndFeel on MacOS uses a special container for the minimized internal frames and that's why the current implementation doesn't see them the proposed fix recursively looks for the internal frames among the JDesktopPane's children the test can be found here: http://java.net/jira/browse/MACOSXPORT-557 Thanks alexp



More information about the macosx-port-dev mailing list