JPro-one / JPro-from-Jars

3 stars 1 forks source link

Alert dialog box was not shown in browser. #15

Closed ghost closed 4 years ago

ghost commented 4 years ago

my jar contains three alert dialog box like this

information-dialog

When I run with JPro-from-jar it not worked.

How can I show the alert dialog box?

FlorianKirmaier commented 4 years ago

javafx.scene.control.Dialog is not supported by JPro. In general blocking API is not supported. Check out our samples for popups/dialogs: https://github.com/JPro-one/JPro-Samples The JFoenix Popups are also a good alternative. We've made our checklist in our documentation more explicit about it.

Hugolarson commented 4 years ago

There is an issue with JFXDialog. The fonts looks different in JPRO.

image

ghost commented 4 years ago

@FlorianKirmaier

How the font is differed?

How the JPro works?explain.

FlorianKirmaier commented 4 years ago

The issue with font isn't related to JFoenix. I explained it already in the other ticket with the same screenshot.

The look of JavaFX is dependent of the OS because different OS have different fonts. JPro tries to load the fonts independent of the OS, which is why it sometimes looks different. But it will always use the same font when the application specifies the used font. There is also very subtle differences in how fonts are rendered in the browser and how they are rendered in native JavaFX. But these differences are annoying but not really problematic.

Hugolarson commented 4 years ago

Florian, Same Pane with controls in image looks fine when shown with WebAPI.openStageAsTab (right). Only when Pane shown in a JFXDialog controls looks blurred like left. Hope you understand what I mean.

FlorianKirmaier commented 4 years ago

@Hugolarson Can you provide a small sample on how to create a blurred element with the JFXDialog? We have a sample-project which already provided a sample-popup based on JFoenix: https://github.com/JPro-one/JPro-Samples, it should be easy to exchange the content. Or show me which content is supposed to be blurred.

Hugolarson commented 4 years ago

Making the sample I discovered that it is JFoenix itself that cause the blurring without JPro. Anyway here is the sample if it's useful to you.

JproTest.zip