I'm passing a variable name (JTextField variable name thats already created) into a method as a string, and want to use that string to assign the variable name in that method.
e.g.
void setpath(String path){
//textbox1.setText("text");
path.setText("text");
}
I can either create several dozen setpath methods with its associated textbox variable name and other stuff, or create one setpath method and use that (what I'm trying to do)
Any way to do this gracefully?