X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FEPSOptions.java;h=543215f702d1d7c9eb8153d88e4832d83e6df013;hb=e5f2de91dc41062d8cee8a2a900710f63cf5ae42;hp=78c1f023f6e56a29fc7881f68861c6d4d90f71fa;hpb=246746e55bd02c66746d5cd872f49890cbae206a;p=jalview.git diff --git a/src/jalview/gui/EPSOptions.java b/src/jalview/gui/EPSOptions.java index 78c1f02..543215f 100755 --- a/src/jalview/gui/EPSOptions.java +++ b/src/jalview/gui/EPSOptions.java @@ -1,6 +1,6 @@ /* * Jalview - A Sequence Alignment Editor and Viewer - * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle + * 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 @@ -27,7 +27,7 @@ public class EPSOptions extends JPanel { JDialog dialog; - boolean cancelled = false; + public boolean cancelled = false; String value; public EPSOptions() @@ -50,7 +50,7 @@ public class EPSOptions null, new Object[]{this}); dialog = pane.createDialog(Desktop.desktop, "EPS Rendering options"); - dialog.show(); + dialog.setVisible(true); } @@ -58,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"); @@ -84,8 +84,8 @@ public class EPSOptions 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); @@ -122,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()