X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FEPSOptions.java;h=543215f702d1d7c9eb8153d88e4832d83e6df013;hb=454688abf087254742210ace4c82bedc918e7590;hp=ee105d820132944ac52033775854b4736510a933;hpb=eee02848424734a9466de35ff19636377652e59b;p=jalview.git diff --git a/src/jalview/gui/EPSOptions.java b/src/jalview/gui/EPSOptions.java index ee105d8..543215f 100755 --- a/src/jalview/gui/EPSOptions.java +++ b/src/jalview/gui/EPSOptions.java @@ -1,3 +1,21 @@ +/* + * Jalview - A Sequence Alignment Editor and Viewer + * Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + */ package jalview.gui; import javax.swing.*; @@ -9,7 +27,7 @@ public class EPSOptions extends JPanel { JDialog dialog; - boolean cancelled = false; + public boolean cancelled = false; String value; public EPSOptions() @@ -32,7 +50,7 @@ public class EPSOptions null, new Object[]{this}); dialog = pane.createDialog(Desktop.desktop, "EPS Rendering options"); - dialog.show(); + dialog.setVisible(true); } @@ -40,10 +58,10 @@ public class EPSOptions throws Exception { lineart.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11)); - lineart.setSelected(true); lineart.setText("Lineart"); text.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11)); text.setText("Text"); + text.setSelected(true); askAgain.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11)); askAgain.setText("Don\'t ask me again"); ok.setText("OK"); @@ -63,11 +81,11 @@ public class EPSOptions } }); jLabel1.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11)); - jLabel1.setText("Select EPS Character rendering style"); + jLabel1.setText("Select EPS character rendering style"); this.setLayout(borderLayout1); jPanel3.setBorder(BorderFactory.createEtchedBorder()); - jPanel2.add(lineart); jPanel2.add(text); + jPanel2.add(lineart); jPanel2.add(askAgain); jPanel1.add(ok); jPanel1.add(cancel); @@ -104,13 +122,13 @@ public class EPSOptions jalview.bin.Cache.setProperty("EPS_RENDERING", value); } - dialog.hide(); + dialog.setVisible(false); } public void cancel_actionPerformed(ActionEvent e) { cancelled = true; - dialog.hide(); + dialog.setVisible(false); } public String getValue()