Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gauge inside javafx.embed.swing.JFXPanel sometimes not updated #139

Open
olpf opened this issue Mar 14, 2018 · 2 comments
Open

Gauge inside javafx.embed.swing.JFXPanel sometimes not updated #139

olpf opened this issue Mar 14, 2018 · 2 comments

Comments

@olpf
Copy link

olpf commented Mar 14, 2018

Hi,
I use some eu.hansolo.medusa.Gauge instances inside a JFXPanel inside Swing. Each gauge shows its value as number and with the "needle value". Under some circumstances sometimes the needle is freezed but the number still shows the correct value. Also sometimes the number is freezed and the needle is correct.
I could not reproduce this insde Netbeans. This only happens if it runs outside the IDE. Any ideas?
Regards
Oli

@HanSolo
Copy link
Owner

HanSolo commented Mar 14, 2018

Hi there,
🤔 to be honest I don‘t have an idea yet. Could you at least provide a code snippet that I can use to try to reproduce?
Cheers,
Gerrit

@olpf
Copy link
Author

olpf commented Mar 14, 2018

Probably changing:
anGauge.setValue(value);
to
Platform.runLater(() -> {
anGauge.setValue(value);
});

solves it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants