throw new IllegalArgumentException("null JInternalFrame[] passed");
}
List<IWidget> framesList = new ArrayList<IWidget>();
for (int i = 0; i < frames.length; ++i)
{
IWidget fr = frames[i];
if (!fr.isToolWindow() && !fr.isClosed() && !fr.isIcon())
{
framesList.add(frames[i]);
}
}
return framesList.toArray(new IWidget[framesList.size()]);