Hi all,
I have a JTextField on a JPanel and i am trying to pass a value from an element in an ArrayList to a JTextField using it's "setText(
String str)" method. Using the debugger I have confirmed that a value does exist in the element of the ArrayList and I have called "toString()" on that element in order to convert it back to a "String" value (as ArrayList elements are stored as generic "Objects").
Here is my Code:
//************************************************************************
vehicleFinalPanel.getVehicleANDDriverMainPanelView1().
getVehicleANDDriverScrollingPanelView1().
getVehicleANDDriverCollectionPanelView1().
getVehicleInforamtionPanelView1().
getJtxtYearPlateExpires().setText(dbData.get(49).toString());
//************************************************************************
//Simple text to see if the value has been passed to the textfield...
//test *****************
System.out.println("Vehicle Plate Expire: ");
System.out.print(vehicleFinalPanel.getVehicleANDDriverMainPanelView1().
getVehicleANDDriverScrollingPanelView1().
getVehicleANDDriverCollectionPanelView1().
getVehicleInforamtionPanelView1().
getJtxtYearPlateExpires().getText());
//************************
Note:
Nothing is printed to the console except...
Vehicle Plate Expire:
Wierd thing is...some textfield work while others do not?
Help anyone?
Thanks in advance
Vehicle Plate Expire: