Mercurial > hg > shenandoah-preopenjdk-archive > openjdk8 > jdk
changeset 10169:1b63a2a01cfd
8057184: JCK8's api/javax_swing/JDesktopPane/descriptions.html#getset failed with GTKLookAndFeel on Linux and Solaris
Reviewed-by: ant, azvegint
author | alexsch |
---|---|
date | Fri, 05 Sep 2014 18:12:22 +0400 |
parents | c28674454d48 |
children | c9666782c0cd |
files | src/share/classes/javax/swing/JDesktopPane.java |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/classes/javax/swing/JDesktopPane.java Tue Sep 02 11:55:46 2014 -0700 +++ b/src/share/classes/javax/swing/JDesktopPane.java Fri Sep 05 18:12:22 2014 +0400 @@ -43,6 +43,7 @@ import java.beans.PropertyVetoException; import java.util.Set; import java.util.TreeSet; +import java.util.LinkedHashSet; /** * A container used to create a multiple-document interface or a virtual desktop. * You create <code>JInternalFrame</code> objects and add them to the @@ -266,7 +267,7 @@ private static Collection<JInternalFrame> getAllFrames(Container parent) { int i, count; - Collection<JInternalFrame> results = new ArrayList<JInternalFrame>(); + Collection<JInternalFrame> results = new LinkedHashSet<>(); count = parent.getComponentCount(); for (i = 0; i < count; i++) { Component next = parent.getComponent(i);