I have a controller Class extends Thread,
and my Run() method, just do this.
private int con = 1;
public void Run(){
while(true){
try{
con++;
print();
catch(exception e){
system.out.prinln(e);
}
}
}
and here's the problem,i need a print() method, to show "con" on a TextField.
I have a frmMain.fxml and the frmMainController.java class.
How i can show my "con", when clicked a button from my interface. (evt onClickedMouse).
i have this:
private TextField tf;
private FrmMainController fr;
public void show(){
tf.setText(String.valueOf(con));
fr.setTxtThread1(tf);
}
I would appreciate someone help me to get over this.