|
|
@ -28,7 +28,6 @@ public class JSCallback { |
|
|
|
public void run() { |
|
|
|
public void run() { |
|
|
|
String fun = "(" + callback + ")(\"" + trimText(newValue) + "\")"; |
|
|
|
String fun = "(" + callback + ")(\"" + trimText(newValue) + "\")"; |
|
|
|
try { |
|
|
|
try { |
|
|
|
System.out.print("###"+newValue); |
|
|
|
|
|
|
|
webEngine.executeScript(fun); |
|
|
|
webEngine.executeScript(fun); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
webEngine.executeScript("alert(\"" + e.getMessage() + "\")"); |
|
|
|
webEngine.executeScript("alert(\"" + e.getMessage() + "\")"); |
|
|
|