One way is to add a method in the class with the data that will return the data.
Then pass a reference to that class to the class that needs the data where it can be called.
In the class with the textfield: tf
public String getData() [
In the class that wants the data;
String data = refToClassWithData.getData();
I'm trying that... but Im getting an error ( Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "" ) when i try to convert "ID" to an integer ( reason is ID is stored as in integer in my database and its stored as a String in the texfield)....