Forum Stats

  • 3,838,512 Users
  • 2,262,378 Discussions

Discussions has no replacement in Java 9/10

carcour-JavaNet Member Posts: 12
edited Mar 29, 2018 11:40PM in Java SE Early Access has no replacement in Java 9/10

I can't seem to access package in Java 9 and 10. I understand the package is not accessible but i can't seem to access it even with --add-exports java.desktop/ as a VM parameter.

Moreover my app has been using to detect maximizing the window on Mac OS but I don't see any direct replacement in java.awt.Desktop.

I looked at java.awt.Desktop source code and I don't see anything.

Am I missing something or is the functionality gone?