If I run my program. a GUI shows.
clicking the combox. calls a series of classes that produce what text needs to be in the textfields
so one of the classes calls fillSetters which is in a class that extends the GUI so "this" should be an instance of the GUI.
could someone who knows OOP show me how to minipulate my GUI without creating a new one.
nothing goes into the text fields.
I put all 4 classes 1600 lines of code into the GUI and it worked. I don't want it that way though.
public void fillTextBox(){
initTextFields(this);
showKey(this);
}
public void showKey(KeyCards kc) {
kc.sigTxt.setText(strSigTxt);
}
public void initTextFields(KeyCards kc) {
kc.sigTxt = new JTextField();
}