X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fsave%2FSvgExporter.java;h=5bfd7c033adf5a62764304da5fe799666aa93fce;hp=c27b2f359ae680fc560db1922a869b08000c30a8;hb=f35b6d628f68e3b5ef19965ad8988d0dd1eb8efa;hpb=3745d70b1427bb8ac1a085e47cbdc566936784e1 diff --git a/tim/prune/save/SvgExporter.java b/tim/prune/save/SvgExporter.java index c27b2f3..5bfd7c0 100644 --- a/tim/prune/save/SvgExporter.java +++ b/tim/prune/save/SvgExporter.java @@ -31,6 +31,7 @@ import tim.prune.UpdateMessageBroker; import tim.prune.config.Config; import tim.prune.data.Track; import tim.prune.function.Export3dFunction; +import tim.prune.gui.DialogCloser; import tim.prune.load.GenericFileFilter; import tim.prune.threedee.ThreeDModel; @@ -131,8 +132,7 @@ public class SvgExporter extends Export3dFunction buttonPanel.add(okButton); JButton cancelButton = new JButton(I18nManager.getText("button.cancel")); cancelButton.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) - { + public void actionPerformed(ActionEvent e) { _dialog.dispose(); } }); @@ -148,6 +148,7 @@ public class SvgExporter extends Export3dFunction phiLabel.setHorizontalAlignment(SwingConstants.TRAILING); centralPanel.add(phiLabel); _phiField = new JTextField("" + _phi); + _phiField.addKeyListener(new DialogCloser(_dialog)); centralPanel.add(_phiField); JLabel thetaLabel = new JLabel(I18nManager.getText("dialog.exportsvg.theta")); thetaLabel.setHorizontalAlignment(SwingConstants.TRAILING);