/**
* FileChooser has to be initialized after JFrame is opened, otherwise the settings will not be applied.
*/
private void initFileChooser() {
//Setup the file filter for gcode files.
GcodeFileTypeFilter filter = new GcodeFileTypeFilter();
// Setup file browser with the last path used.
this.fileChooser = new JFileChooser(settings.getFileName());
this.fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
this.fileChooser.setFileHidingEnabled(true);