Java Flashcards
1
Q
Swing Containers

A

2
Q
Swing Menus
A

3
Q
FileWriter and BufferedWriter
Object
A
FileWriter writer-var = new FileWriter(“string-file-path”, Bool);
BufferedWriter bf-var = new BufferedWriter(writer-var);

4
Q
How do you write to file from multiple GUI text-fields, with space delimiters, and a new line for every click-action?
A
- Create the FileWriter and BufferedWriter object
- Apply ‘write’ method calls to text-field variables (to bw object)
- Apply ‘write’ method calls for strings of empty-space in between calls to text-field - Call ‘new-line’ method for bw at the end of calls to text-field
- Call ‘close’ method to close bw

5
Q
How does the ‘CLEAR’ button for opSalesTracker work?

A
…
