Alex Roberts and Caleb Powell What does the File Chooser accomplish Easy and simple way to create a system for selecting files Output the action taken by the user Utilize Javas inheritance abilities ID: 531157
Download Presentation The PPT/PDF document "File Chooser and File I/O" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
Slide1
File Chooser and File I/O
Alex Roberts and Caleb PowellSlide2
What does the File Chooser accomplish?
Easy and simple way to create a system for selecting files
Output the action taken by the user
Utilize Java’s inheritance abilitiesSlide3
Creation and Methods of File Chooser
Declaration:
Invocation
:Slide4
But why File Choosers?
Allows the common user to access files
Creating it takes up one line of code
Used in a lot of common programsSlide5
Why’s File I/O the Bees Knees?
Basic read to files and write to files
Edit text files without opening them
(Buffered streams) Easier to codeSlide6
Establishing and Using File I/O
Declaration:
Invocation:Slide7
Ask not what you can do for File I/O, but what File I/O can do for you.
The basis for loading a save file in a video game
Used in saving this power point
Useful for referencing something from a previous useSlide8
Works Cited
http://
docs.oracle.com/javase/7/docs/api/java/io/BufferedReader.html
http://
docs.oracle.com/javase/7/docs/api/java/io/BufferedWriter.html
http
://docs.oracle.com/javase/7/docs/api/javax/swing/JPanel.html