• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Looping through TextFields and storing data in arrays

 
Shawn Dinger
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello. I am working on my second javafx program and I am getting confused. The program that I am writing is a payroll calculator. A secondary window opens at the start of the program where the user first enters the number of employees and clicks submit to save the number and to close this window. Then, the user begins to enters the employee information (first name, last name, pay rate and hours worked) when the user clicks the NextEmp button, I want the data in the text fields to be entered into arrays for later use, then clear the fields for the next use. I am running into 2 issues. The first is the close event for the secondary window that pops up. I cannot figure out the syntax. The second issue that I am running into is the loop to store the data into the arrays. I believe I am getting the text field data correctly, but I cannot figure out how to stop the loop until the NextEmp button is pressed again. Thanks in advance for any help you could provide.

 
Shawn Dinger
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I think I have most of this worked out now. Now the issues I am running into are still closing "stage2", and now I am getting an error on my file output. I am getting "Unhandled exception type IOException". I cannot seem to figure out how to correct this issue. Any help would be greatly appreciated. here is my updated code:


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic