提交 46ddd4da 编写于 作者: A alexsch

8057184: JCK8's api/javax_swing/JDesktopPane/descriptions.html#getset failed...

8057184: JCK8's api/javax_swing/JDesktopPane/descriptions.html#getset failed with GTKLookAndFeel on Linux and Solaris
Reviewed-by: ant, azvegint
上级 c69bc2eb
...@@ -43,6 +43,7 @@ import java.io.IOException; ...@@ -43,6 +43,7 @@ import java.io.IOException;
import java.beans.PropertyVetoException; import java.beans.PropertyVetoException;
import java.util.Set; import java.util.Set;
import java.util.TreeSet; import java.util.TreeSet;
import java.util.LinkedHashSet;
/** /**
* A container used to create a multiple-document interface or a virtual desktop. * A container used to create a multiple-document interface or a virtual desktop.
* You create <code>JInternalFrame</code> objects and add them to the * You create <code>JInternalFrame</code> objects and add them to the
...@@ -266,7 +267,7 @@ public class JDesktopPane extends JLayeredPane implements Accessible ...@@ -266,7 +267,7 @@ public class JDesktopPane extends JLayeredPane implements Accessible
private static Collection<JInternalFrame> getAllFrames(Container parent) { private static Collection<JInternalFrame> getAllFrames(Container parent) {
int i, count; int i, count;
Collection<JInternalFrame> results = new ArrayList<JInternalFrame>(); Collection<JInternalFrame> results = new LinkedHashSet<>();
count = parent.getComponentCount(); count = parent.getComponentCount();
for (i = 0; i < count; i++) { for (i = 0; i < count; i++) {
Component next = parent.getComponent(i); Component next = parent.getComponent(i);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册