Hi Team,
Im using SwingUtilities.invokeLater() under that called one method to set text to button in ubuntu linux but not getting set, facing exception
Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: Not on FX application thread; currentThread = AWT-EventQueue-0
Tried workarounds:
1.Tested by calling SwingUtilities.invokeLater() inside background [SwingWorker Class] thread still the result occurs same.Returns above exception as mentioned
2. If i use Platform.runLater() in windows it works fine,but linux gets freeze.
3.Tested by calling Platform.runLater() inside background/worker [SwingWorker Class ] thread still the UI hangs.
Any help would be appreciated..
Thanks in advance
Regards,
Rak
Im using SwingUtilities.invokeLater() under that called one method to set text to button in ubuntu linux but not getting set, facing exception
Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: Not on FX application thread; currentThread = AWT-EventQueue-0
Tried workarounds:
1.Tested by calling SwingUtilities.invokeLater() inside background [SwingWorker Class] thread still the result occurs same.Returns above exception as mentioned
2. If i use Platform.runLater() in windows it works fine,but linux gets freeze.
3.Tested by calling Platform.runLater() inside background/worker [SwingWorker Class ] thread still the UI hangs.
Any help would be appreciated..
Thanks in advance
Regards,
Rak