Class Taskbar

java.lang.Object
java.awt.Taskbar

public class Taskbar extends Object
The Taskbar class allows a Java application to interact with the system task area (taskbar, Dock, etc.).

There are a variety of interactions depending on the current platform such as displaying progress of some task, appending user-specified menu to the application icon context menu, etc.

Implementation Note:
Linux support is currently limited to Unity. However to make these features work on Unity, the app should be run from a .desktop file with specified java.desktop.appName system property set to this .desktop file name: Exec=java -Djava.desktop.appName=MyApp.desktop -jar /path/to/myapp.jar see https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles
Since:
9
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    List of provided features.
    static enum 
    Kinds of available window progress states.
  • Method Summary

    Modifier and Type
    Method
    Description
    Obtains an image of this application's icon.
    Gets PopupMenu used to add items to this application's icon in system task area.
    static Taskbar
    Returns the Taskbar instance of the current taskbar context.
    boolean
    Tests whether a Feature is supported on the current platform.
    static boolean
    Tests whether this class is supported on the current platform.
    void
    requestUserAttention(boolean enabled, boolean critical)
    Requests user attention to this application.
    void
    Requests user attention to the specified window.
    void
    Affixes a small system-provided badge to this application's icon.
    void
    Requests the system to ch