Is it possible to set the value of a JTextfield in a class in which the textfield is not declared or created..??
How can one do that??
I would imagine it would depend on whether the JTextfield was declared as a public or private class member. If it was declared public, you could set the value directly from another class. If it was declared private, you would have to set it through a public function of the class that created the JTextfield.
I was looking at your code in your other post. In situations like these, I always (at least temporarily) get rid of the "static" and "abstract" qualifiers and see if things work better without them. I also notice that you have two tri () functions. For debugging purposes, I usually put some code in each function to display where I am to the console screen, just to make sure that the function that I think I am calling is really the one I am calling. If it works without the "abstract" and "static" qualifiers, but not with them, that narrows down your problem. If you discover that it makes no difference, that also narrows it down.
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...