Динамическое обновление текстового поля на живых событиях
//this method gets Telephone number from a sipserver public void telephoneNumbs(String numbers) { String replace = numbers.replace("sip:", "").trim().replace(".", ""); // Incoming Call Numbers from Sip UA if (!replace.isEmpty()) { List<TelephoneObj> telephons; telTextField.setText(null); //init it with null costumDao = new CostumersDao(); // costumers DB telephons = costumDao.getOrCompareTelfone(numbers); for (TelephoneObj tmp : telephons) { System.out.println("Test: " + tmp.getTelephoneNums); // am getting exactle what i need here from my Database //or JOptionPane.showMessageDialog(null,"incoming:"+ tmp.getTelephoneNums); // it show it during incoming calls //here is the problem. it wouldnt show the Value on the Textfield telTextField.setText(tmp.getTelephoneNums); //try to push that Value(Telephone number) to show in JFXTextfield/it cold be any other Textfields } }
Что я уже пробовал:
Hi, i am at the moment developing a Softphone with javafx. and i kind of a have problem capturing incoming call to a textfield. an example of my code is here. an incoming call is with Joptionpane successful bt i had like to have the value appear in call textfield just like telephone. Thank you.