Class Taskbar
java.lang.Object
java.awt.Taskbar
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.appNamesystem property set to this .desktop file name:Exec=java -Djava.desktop.appName=MyApp.desktop -jar /path/to/myapp.jarsee https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles - Since:
- 9
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumList of provided features.static enumKinds of available window progress states. -
Method Summary
Modifier and TypeMethodDescriptionObtains an image of this application's icon.getMenu()Gets PopupMenu used to add items to this application's icon in system task area.static TaskbarReturns theTaskbarinstance of the current taskbar context.booleanisSupported(Taskbar.Feature feature) Tests whether aFeatureis supported on the current platform.static booleanTests whether this class is supported on the current platform.voidrequestUserAttention(boolean enabled, boolean critical) Requests user attention to this application.voidRequests user attention to the specified window.voidsetIconBadge(String badge) Affixes a small system-provided badge to this application's icon.voidsetIconImage(Image image) Requests the system to ch