Amit Gujjar
Amit Gujjar

Reputation: 681

what is replacement of com.sun.javafx.runtime API in javafx 2.1?

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

Answers (2)

Belmendo
Belmendo

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

jewelsea
jewelsea

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

Related Questions