filmov
tv
Java I/O 05. GUI File chooser

Показать описание
This video tutorial will show you how to create a GUI so that the user may choose a file.
/**
* GUI File Chooser
* You can also have the user choose a file through a GUI
**/
public class GUIFileChooser {
public static void main(String[] args) throws Exception {
JFileChooser fileChooser = new JFileChooser();
Scanner in = new Scanner(openedFile);
}
} else {
}
}
}
/**
* GUI File Chooser
* You can also have the user choose a file through a GUI
**/
public class GUIFileChooser {
public static void main(String[] args) throws Exception {
JFileChooser fileChooser = new JFileChooser();
Scanner in = new Scanner(openedFile);
}
} else {
}
}
}