From 3f578998521236c208e9d3c7790d4d5ac4da0a50 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 16 Mar 2005 14:53:03 +0000 Subject: [PATCH] uses jalviewfilechooser --- src/jalview/gui/AlignFrame.java | 4 ++-- src/jalview/gui/AlignmentPanel.java | 6 +++--- src/jalview/gui/Desktop.java | 8 ++++---- src/jalview/gui/TreePanel.java | 4 ++-- src/jalview/gui/UserDefinedColours.java | 9 +++++---- src/jalview/io/HTMLOutput.java | 4 ++-- 6 files changed, 18 insertions(+), 17 deletions(-) diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index c679559..9d7e2b7 100755 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -63,12 +63,12 @@ public class AlignFrame extends GAlignFrame protected void saveAs_actionPerformed(ActionEvent e) { - JFileChooser chooser = new JFileChooser(jalview.bin.Cache.getProperty("LAST_DIRECTORY")); + JalviewFileChooser chooser = new JalviewFileChooser(jalview.bin.Cache.getProperty("LAST_DIRECTORY")); chooser.setFileView(new JalviewFileView()); chooser.setDialogTitle("Save Alignment to file - "+e.getActionCommand() +" format."); chooser.setToolTipText("Save"); int value = chooser.showSaveDialog(this); - if(value == JFileChooser.APPROVE_OPTION) + if(value == JalviewFileChooser.APPROVE_OPTION) { String choice = chooser.getSelectedFile().getPath(); jalview.bin.Cache.setProperty("LAST_DIRECTORY", choice); diff --git a/src/jalview/gui/AlignmentPanel.java b/src/jalview/gui/AlignmentPanel.java index 296bb80..da68ab9 100755 --- a/src/jalview/gui/AlignmentPanel.java +++ b/src/jalview/gui/AlignmentPanel.java @@ -383,7 +383,7 @@ public class AlignmentPanel extends GAlignmentPanel implements AdjustmentListene Color currentTextColor=null; for(int i=startSeq; i