Question: How do I do this with java FX? Also I have this class for the fileIO package ta1; import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; import

How do I do this with java FX?

Also I have this class for the fileIO

package ta1; import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.text.SimpleDateFormat; import java.util.Date; public class fileIO { public void wrTransactionData(String dataStr) { FileWriter fwg = null; try { // open the file in append write mode fwg = new FileWriter("transactionLog.txt", true); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } BufferedWriter bwg = new BufferedWriter(fwg); PrintWriter outg = new PrintWriter(bwg); String timeStamp = new SimpleDateFormat("MM-dd-yyyy HH.mm.ss").format(new Date()); outg.println(timeStamp + " : " + dataStr); outg.close(); } }

How do I do this with java FX? Also I have this

Create a simple data entry screen with at least 5 text fields in the GUI. When the "Save" button is pressed, save information to a file on the disk. I will post a JAVA class to open a file and write the data strings into it. You can incorporate this class into the lab #4 project. OOO Add Employee First Name Bobby Last Name Sparks Email bobby.sparks@foo.com Salary 24000 Date of Birth 05/19/1942 (mm/dd/yyyy) Create a simple data entry screen with at least 5 text fields in the GUI. When the "Save" button is pressed, save information to a file on the disk. I will post a JAVA class to open a file and write the data strings into it. You can incorporate this class into the lab #4 project. OOO Add Employee First Name Bobby Last Name Sparks Email bobby.sparks@foo.com Salary 24000 Date of Birth 05/19/1942 (mm/dd/yyyy)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!