return newListFrame(new JXL());
}
public ListFrame newListFrame(JXL jxl) {
for (Iterator it = listFrameList.iterator(); it.hasNext();) {
ListFrame listFrame = (ListFrame) it.next();
File file = listFrame.getJXL().getFile();
if ((file != null) && file.equals(jxl.getFile())) {
activeListFrame = listFrame;
return listFrame;
}
}
ListFrame listFrame = new ListFrame(jxl);
listFrame.addWindowListener(activationListener);
listFrameList.add(listFrame);
ClientConfiguration.getDefault().restoreListFramePrefs(listFrame);
if (splashScreen != null) {
splashScreen.hide();
splashScreen.dispose();
splashScreen = null;
}
if (activeListFrame != null) {
int x = activeListFrame.getX() + 30;
int y = activeListFrame.getY() + 30;
listFrame.setLocation(x, y);
}
activeListFrame = listFrame;
return listFrame;
}