Question: I am using NetBeans Java IDE to parse an XML file. I have used that file in MainForm.java with information from InventoryFileReader.java (where the XML
I am using NetBeans Java IDE to parse an XML file. I have used that file in MainForm.java with information from InventoryFileReader.java (where the XML is read). The MainForm screen shows a list of cars and there is a button that we are able to press that shows more information about the following car. When you press the, 'View More Details' button, the ViewCarForm. java screen pops up and shows more information for the selected car. I need help with pulling the information from each specific car. The code I have typed in the ViewCarForm shows information for car 0 despite different cars selected. I am also unable to show information for fields that include int such as miles, price, etc. I am assuming I have to parse the code, but I am unsure how to do so, nor do I know how to specifically loop the car array to display the specific information for the specific car.
Chegg wont post my question when I attach the corresponding Java files.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
