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;
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();
}
});
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);