I am working on an JavaFX application and I have to set system related information in a JavaFX label.
I am doing like given as below:
systemInfo.setHdUsageTxt(Integer.toString(Runtime.getRuntime().availableProcessors()));
Here hdUsageTxt
is a JavaFX label in which I have to set number of available processors at a time. But it is not setting String or Integer value in this label. And giving exception. Please suggest which type of data JavaFX label and TextField takes and how to set value in it?