© Fu Cheng 2018
Fu ChengExploring Java 9https://doi.org/10.1007/978-1-4842-3330-6_14

14. User Interface

Fu Cheng
(1)
Auckland, New Zealand
 
A large number of desktop applications are still developed in Java. Java 9 continues to improve on support for these desktop applications.

Desktop

The class java.awt.Desktop allows Java applications to interact with various desktop capabilities. Java 9 extends this support by adding more capabilities. However, these new capabilities may not be supported by all native platforms. If the underlying platform doesn’t support a capability, the corresponding method has no effect. All these capabilities have an enum value in Desktop.Action. You can use the method boolean isSupported(Desktop.Action action) in Desktop to ...

Get Exploring Java 9: Build Modularized Applications in Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.