About passing value from JFrame to other
Hello friends...i want to ask a question that how to pass a value of the textField from JFrame to other JFrame....Ex: As i want to display the name of the user on the WELCOME page by fetching the values of the username from the textField in the LOGIN JFrame..please help me !!!!! its urgent very urgent.. please help with a clear illustration....HELP!!!! HELP!!!!!
Re: About passing value from JFrame to other
To access data in one object from another object, you need a reference to the object with the data.
The you can call a method in that object to get the data. For example:
String someData = refToOtherObject.getData();
where getData() is defined in the other class to return a String.