{
openFrameCount--;
windowMenu.remove(menuItem);
+ JInternalFrame itf = desktop.getSelectedFrame();
+ if (itf != null)
+ itf.requestFocus();
}
;
});
*/
public void inputURLMenuItem_actionPerformed(ActionEvent e)
{
- String url = JOptionPane.showInternalInputDialog(Desktop.desktop,
+ Object reply = JOptionPane.showInternalInputDialog(Desktop.desktop,
"Enter url of input file", "Input alignment from URL",
- JOptionPane.QUESTION_MESSAGE, null, null, "http://www.")
- .toString();
+ JOptionPane.QUESTION_MESSAGE, null, null, "http://www.");
- if (url == null)
+ if (reply == null)
{
return;
}
- if (url.trim().toLowerCase().endsWith(".jar"))
+ String url = reply.toString().trim();
+
+ if (url.toLowerCase().endsWith(".jar"))
{
jalview.bin.Cache.setProperty("DEFAULT_FILE_FORMAT", "Jalview");
Jalview2XML.LoadJalviewAlign(url);