Reputation: 35
I am kind of confused as i am using Eclipse Luna in my kind of big project, and i was using JavaFX fine, for now.
I am trying to implement a Process Dialog as shown in here
And here is a tricky part, my eclipse does not recognize nor know what to do with those few badly importat lines
Dialogs.create()
.owner(stage)
.title("Progress Dialog")
.masthead("Searching for friends")
.showWorkerProgress(service);
The first word in this code gets underlined and a mysterious
Dialogs cannot be resolved
show up as i hover above it..
I can not understand this matter as i use a lot of JavaFX in this project, and i did not have any issues with any part. Alerts, windows and all stuff like that works fine, only this thing is kind of strange for me.
Also, i do use JavaFX ver 8.0.45-b11
, and it disturbs me as somewhere i found that
JavaFX has never had a dialogs API, which has always seemed to be a glaring omission – but no more! It has (finally!!!) been decided that JavaFX 8u40 will be the first release that will include a dialogs API.
Could someone please tell me if there is any mysterious thing that one must do to use this JavaFX Dialogs API?
Upvotes: 1
Views: 1144
Reputation: 2377
No need to use 3rd party dialogs going forward. Learn how to use the dialogs native to jdk8u40+ from this JavaFX Dialogs page.
Upvotes: 3