SyntaxFix
Write A Post
Hire A Developer
Questions
Just use com.sun.javafx.util.Utils as below.
com.sun.javafx.util.Utils
if ( Utils.isWindows()){ // LOGIC HERE }
OR USE
boolean isWindows = OSInfo.getOSType().equals(OSInfo.OSType.WINDOWS); if (isWindows){ // YOUR LOGIC HERE }