< prev index next >
src/java.desktop/share/classes/sun/awt/ComponentFactory.java
Print this page
*** 73,82 ****
--- 73,99 ----
default DesktopPeer createDesktopPeer(Desktop target) {
throw new HeadlessException();
}
/**
+ * Creates this toolkit's implementation of the {@code Taskbar} using the
+ * specified peer interface.
+ *
+ * @param target the taskbar to be implemented
+ * @return this toolkit's implementation of the {@code Taskbar}
+ * @throws HeadlessException if GraphicsEnvironment.isHeadless() returns
+ * true
+ * @see java.awt.GraphicsEnvironment#isHeadless
+ * @see java.awt.Taskbar
+ * @see java.awt.peer.TaskbarPeer
+ * @since 1.9
+ */
+ default TaskbarPeer createTaskbarPeer(Taskbar target) {
+ throw new HeadlessException();
+ }
+
+ /**
* Creates this toolkit's implementation of {@code Button} using the
* specified peer interface.
*
* @param target the button to be implemented
* @return this toolkit's implementation of {@code Button}
< prev index next >