From bafd98ddd0fc546bdb4ca82f8ed99568db2e8e10 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Thu, 28 Apr 2005 15:32:28 +0000 Subject: [PATCH] Set fullscreen if in preferences --- src/jalview/gui/Desktop.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index 1226f67..ac992f6 100755 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -20,6 +20,7 @@ import java.awt.dnd.*; import javax.swing.*; import java.awt.datatransfer.*; import java.io.*; +import jalview.bin.Cache; public class Desktop extends jalview.jbgui.GDesktop implements DropTargetListener @@ -171,6 +172,7 @@ this.setDropTarget(new java.awt.dnd.DropTarget(desktop, this)); }catch(Exception ex){ex.printStackTrace();} } + public void inputLocalFileMenuItem_actionPerformed(ActionEvent e) { JalviewFileChooser chooser = new JalviewFileChooser(jalview.bin.Cache.getProperty("LAST_DIRECTORY"), @@ -216,6 +218,12 @@ this.setDropTarget(new java.awt.dnd.DropTarget(desktop, this)); AlignFrame af = new AlignFrame(new Alignment(sequences)); addInternalFrame(af, file, AlignFrame.NEW_WINDOW_WIDTH, AlignFrame.NEW_WINDOW_HEIGHT); af.statusBar.setText("Successfully loaded file " + file); + String string = Cache.getProperty("SHOW_FULLSCREEN"); + try{ + if (string != null) + af.setMaximum(Boolean.valueOf(string).booleanValue()); + }catch(Exception ex){} + } else JOptionPane.showInternalMessageDialog(Desktop.desktop, "Couldn't open file.\n" @@ -230,9 +238,13 @@ this.setDropTarget(new java.awt.dnd.DropTarget(desktop, this)); public void inputURLMenuItem_actionPerformed(ActionEvent e) { + JOptionPane op = new JOptionPane(); + String url = JOptionPane.showInternalInputDialog(Desktop.desktop,"Enter url of input file", "Input alignment from URL", - JOptionPane.QUESTION_MESSAGE); + JOptionPane.QUESTION_MESSAGE, + null, null, + "http://www.").toString(); if (url == null) return; -- 1.7.10.2