Mentions légales du service

Skip to content
Snippets Groups Projects
Commit b501b2c5 authored by PECHOUX Romain's avatar PECHOUX Romain
Browse files

fileChooser opens directly in the examples subdictory

parent 7119f565
No related branches found
No related tags found
No related merge requests found
......@@ -70,31 +70,6 @@ public class FOTierList extends ArrayList<FOTier>{
add(new FOTier(out,env,in));
}
/**
* Removes the FOTier at index i.
* @param i - the index of the FOTier to remove.
*/
// public void remove(int i) {
// remove(i);
// }
/**
* @return the number of FOTiers in the FOTierList.
*/
// public int size() {
// return results.size();
// }
/**
*
* @param i - the index of the FOTier to get.
* @return the FOTier of index i.
*/
// public FOTier get(int i) {
// return results.get(i);
// }
/**
*
* @param in - input tiers.
......
......@@ -73,7 +73,8 @@ public class EditorView extends JPanel {
@Override
public void actionPerformed(ActionEvent actionEvent) {
JFileChooser fc = new JFileChooser();
fc.setCurrentDirectory(new File(System.getProperty("user.dir")));
String s = System.getProperty("user.dir")+System.getProperty("file.separator")+"examples";
fc.setCurrentDirectory(new File(s));
if(JFileChooser.APPROVE_OPTION == fc.showOpenDialog(parent)) {
File f = fc.getSelectedFile();
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment