git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c33c00e
)
Set fullscreen if in preferences
author
amwaterhouse
<Andrew Waterhouse>
Thu, 28 Apr 2005 15:32:28 +0000
(15:32 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Thu, 28 Apr 2005 15:32:28 +0000
(15:32 +0000)
src/jalview/gui/Desktop.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/Desktop.java
b/src/jalview/gui/Desktop.java
index
1226f67
..
ac992f6
100755
(executable)
--- a/
src/jalview/gui/Desktop.java
+++ b/
src/jalview/gui/Desktop.java
@@
-20,6
+20,7
@@
import java.awt.dnd.*;
import javax.swing.*;
\r
import java.awt.datatransfer.*;
\r
import java.io.*;
\r
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
\r
\r
public class Desktop extends jalview.jbgui.GDesktop implements DropTargetListener
\r
@@
-171,6
+172,7
@@
this.setDropTarget(new java.awt.dnd.DropTarget(desktop, this));
}catch(Exception ex){ex.printStackTrace();}
\r
}
\r
\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
public void inputLocalFileMenuItem_actionPerformed(ActionEvent e)
\r
{
\r
JalviewFileChooser chooser = new JalviewFileChooser(jalview.bin.Cache.getProperty("LAST_DIRECTORY"),
\r
@@
-216,6
+218,12
@@
this.setDropTarget(new java.awt.dnd.DropTarget(desktop, this));
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
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
else
\r
JOptionPane.showInternalMessageDialog(Desktop.desktop, "Couldn't open file.\n"
\r
@@
-230,9
+238,13
@@
this.setDropTarget(new java.awt.dnd.DropTarget(desktop, this));
\r
public void inputURLMenuItem_actionPerformed(ActionEvent e)
\r
{
\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
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
if (url == null)
\r
return;
\r
\r