akosiraff

Download TrackTruck

Aug 27th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1.  
  2. Download: https://solutionzip.com/downloads/tracktruck/
  3. A trucking company has an application to track data from their trucks regarding miles driven and fuel used each month. This information is input from a GUI and stored in a file named “trucks.txt”. The GUI has the following components.
  4. Component Type Purpose
  5. txtID JTextField Input for TruckID
  6. txtMiles JTextField Input for miles driven
  7. txtFuel JTextField Input for fuel used
  8. btnSave JButton Click to save data to the file
  9. The data should be saved to the file with delimiters between the fields, as shown below.
  10. TruckID#miles#fuel
  11. The class method saveFile() is called by the action listener to do the work. Write the code for this method. Make sure to validate that all data is present.
  12.  
  13. Download: https://solutionzip.com/downloads/tracktruck/
Add Comment
Please, Sign In to add comment