112 |
public void |
public void |
113 |
actionPerformed(ActionEvent e) { onBrowse(); } |
actionPerformed(ActionEvent e) { onBrowse(); } |
114 |
}); |
}); |
115 |
|
|
116 |
|
btnBrowse.requestFocusInWindow(); |
117 |
} |
} |
118 |
|
|
119 |
protected void |
protected void |
140 |
int result = fc.showOpenDialog(this); |
int result = fc.showOpenDialog(this); |
141 |
if(result == JFileChooser.APPROVE_OPTION) { |
if(result == JFileChooser.APPROVE_OPTION) { |
142 |
tfFilename.setText(fc.getSelectedFile().getPath()); |
tfFilename.setText(fc.getSelectedFile().getPath()); |
143 |
|
btnOk.requestFocusInWindow(); |
144 |
} |
} |
145 |
} |
} |
146 |
|
|
151 |
public String |
public String |
152 |
getFileName() { return tfFilename.getText(); } |
getFileName() { return tfFilename.getText(); } |
153 |
|
|
154 |
|
/** |
155 |
|
* Gets the index of the instrument in the instrument file. |
156 |
|
* @return The index of the instrument in the instrument file. |
157 |
|
*/ |
158 |
public int |
public int |
159 |
getInstrumentIndex() { return Integer.parseInt(spinnerIndex.getValue().toString()); } |
getInstrumentIndex() { return Integer.parseInt(spinnerIndex.getValue().toString()); } |
160 |
} |
} |