Reputation: 681
I am doing convert code from javafx 1.3 to javafx 2.1. But I face this problem. So please help me. Thanks in advance.
Upvotes: 1
Views: 641
Reputation: 1
use
Platform.runLater(new Runnable() {
@Override
public void run() {
javafxuicomponent.setText("text to display");
}
});
instead of
Entry.deferAction(new Runnable() {
@Override
public void run() {
fxListener.onMessage(line);
}
});
Upvotes: 0
Reputation: 159290
The only thing in the JavaFX 1.3 javafx.runtime package was a test of platform conditional features.
For JavaFX 2.1, the javafx.application.Platform.isSupported(ConditionalFeature) method is equivalent.
Upvotes: 1