java.lang.Object
app.supernaut.fx.util.FxVersionUtil
Various utilities methods for testing the current FX version and environment
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ModuleDescriptor.Version
static boolean
static boolean
isMacOS()
static boolean
IsHostServices.showDocument(String)
available?
-
Constructor Details
-
FxVersionUtil
public FxVersionUtil()
-
-
Method Details
-
getJavaFXVersion
- Returns:
- The JavaFX Runtime Version in
ModuleDescriptor.Version
format
-
isShowDocumentAvailable
IsHostServices.showDocument(String)
available?Hyperlinks don't work on macOS in Graal native-image yet, but they should be available in the next EA release of OpenJFX 18.
For Browser open to be available one of the following must be true:
- OS is not macOS
- Not running in GraalVM native image
- JavaFX is later than
MACOS_NATIVE_SHOW_DOC_VERSION
- Returns:
- true if available, false if not
- See Also:
-
hasMacShowDocumentFix
- Returns:
- true if this JavaFX version has the fix for macOS native-image showDocument
-
isMacOS
- Returns:
- true if we're running on macOS
-