Java 类java.awt.Taskbar 实例源码

项目:demo-java-9    文件:DesktopFeatures.java   
public static void main(String[] args) {
    if (Taskbar.isTaskbarSupported()) {
        System.out.println("Taskbar is supported - feature support breakdown:");
        Taskbar taskbar = Taskbar.getTaskbar();
        stream(Feature.values())
                .forEach(feature -> System.out.printf(" - %s: %s%n", feature, taskbar.isSupported(feature)));
    } else {
        System.out.println("Taskbar is not on your platform. :(");
    }
}