import javax.swing.*;\r
import java.awt.datatransfer.*;\r
import java.io.*;\r
+import jalview.bin.Cache;\r
\r
\r
public class Desktop extends jalview.jbgui.GDesktop implements DropTargetListener\r
}catch(Exception ex){ex.printStackTrace();}\r
}\r
\r
+\r
public void inputLocalFileMenuItem_actionPerformed(ActionEvent e)\r
{\r
JalviewFileChooser chooser = new JalviewFileChooser(jalview.bin.Cache.getProperty("LAST_DIRECTORY"),\r
AlignFrame af = new AlignFrame(new Alignment(sequences));\r
addInternalFrame(af, file, AlignFrame.NEW_WINDOW_WIDTH, AlignFrame.NEW_WINDOW_HEIGHT);\r
af.statusBar.setText("Successfully loaded file " + file);\r
+ String string = Cache.getProperty("SHOW_FULLSCREEN");\r
+ try{\r
+ if (string != null)\r
+ af.setMaximum(Boolean.valueOf(string).booleanValue());\r
+ }catch(Exception ex){}\r
+\r
}\r
else\r
JOptionPane.showInternalMessageDialog(Desktop.desktop, "Couldn't open file.\n"\r
\r
public void inputURLMenuItem_actionPerformed(ActionEvent e)\r
{\r
+ JOptionPane op = new JOptionPane();\r
+\r
String url = JOptionPane.showInternalInputDialog(Desktop.desktop,"Enter url of input file",\r
"Input alignment from URL",\r
- JOptionPane.QUESTION_MESSAGE);\r
+ JOptionPane.QUESTION_MESSAGE,\r
+ null, null,\r
+ "http://www.").toString();\r
if (url == null)\r
return;\r
\r