int low = Integer.valueOf(lowFreqText.getText());
int high = Integer.valueOf(highFreqText.getText());
double baud = Double.valueOf(baudRateText.getText());
if (outputFileLabel.getText().equals(DEFAULT_OUTPUT_LABEL)) {
RttyDemod demod = new RttyDemod(inputFile);
String data = demod.demodulateBaudot(low,high,baud);
FrameDecodedMessage.createAndShowGUI(data);
} else {
RttyDemod demod = new RttyDemod(inputFile, outputFileLabel.getText());
demod.demodulate(low, high, baud);
}
frame.dispose();
}
});