Java Flashcards

1
Q

Swing Containers

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Swing Menus

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

FileWriter and BufferedWriter

Object

A

FileWriter writer-var = new FileWriter(“string-file-path”, Bool);

BufferedWriter bf-var = new BufferedWriter(writer-var);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
  1. Create the FileWriter and BufferedWriter object
  2. 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
  3. Call ‘new-line’ method for bw at the end of calls to text-field
  4. Call ‘close’ method to close bw
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How does the ‘CLEAR’ button for opSalesTracker work?

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly