提交 9f8ae479 编写于 作者: 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
上级 b51cc74c
......@@ -43,6 +43,7 @@ import java.io.IOException;
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 @@ public class JDesktopPane extends JLayeredPane implements Accessible
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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册