We're all talking above about the native Windows version of SAPgui. Is there a reason you are using the JavaGUI rather than the native one?
According to OSS Note 2059424 - SAP GUI for Java: Requirements for Release 7.40 - it is supported on Windows 10 but I haven't tried it. I've never had a good reason to use it in preference to the native SAPgui...
Steve.