Java Code Examples for java.awt.peer.TrayIconPeer#setToolTip()
The following examples show how to use
java.awt.peer.TrayIconPeer#setToolTip() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TrayIcon.java From jdk8u-jdk with GNU General Public License v2.0 | 3 votes |
/** * Sets the tooltip string for this <code>TrayIcon</code>. The * tooltip is displayed automatically when the mouse hovers over * the icon. Setting the tooltip to <code>null</code> removes any * tooltip text. * * When displayed, the tooltip string may be truncated on some platforms; * the number of characters that may be displayed is platform-dependent. * * @param tooltip the string for the tooltip; if the value is * <code>null</code> no tooltip is shown * @see #getToolTip */ public void setToolTip(String tooltip) { this.tooltip = tooltip; TrayIconPeer peer = this.peer; if (peer != null) { peer.setToolTip(tooltip); } }
Example 2
Source File: TrayIcon.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 3 votes |
/** * Sets the tooltip string for this <code>TrayIcon</code>. The * tooltip is displayed automatically when the mouse hovers over * the icon. Setting the tooltip to <code>null</code> removes any * tooltip text. * * When displayed, the tooltip string may be truncated on some platforms; * the number of characters that may be displayed is platform-dependent. * * @param tooltip the string for the tooltip; if the value is * <code>null</code> no tooltip is shown * @see #getToolTip */ public void setToolTip(String tooltip) { this.tooltip = tooltip; TrayIconPeer peer = this.peer; if (peer != null) { peer.setToolTip(tooltip); } }
Example 3
Source File: TrayIcon.java From jdk-1.7-annotated with Apache License 2.0 | 3 votes |
/** * Sets the tooltip string for this <code>TrayIcon</code>. The * tooltip is displayed automatically when the mouse hovers over * the icon. Setting the tooltip to <code>null</code> removes any * tooltip text. * * When displayed, the tooltip string may be truncated on some platforms; * the number of characters that may be displayed is platform-dependent. * * @param tooltip the string for the tooltip; if the value is * <code>null</code> no tooltip is shown * @see #getToolTip */ public void setToolTip(String tooltip) { this.tooltip = tooltip; TrayIconPeer peer = this.peer; if (peer != null) { peer.setToolTip(tooltip); } }
Example 4
Source File: TrayIcon.java From jdk8u-jdk with GNU General Public License v2.0 | 3 votes |
/** * Sets the tooltip string for this <code>TrayIcon</code>. The * tooltip is displayed automatically when the mouse hovers over * the icon. Setting the tooltip to <code>null</code> removes any * tooltip text. * * When displayed, the tooltip string may be truncated on some platforms; * the number of characters that may be displayed is platform-dependent. * * @param tooltip the string for the tooltip; if the value is * <code>null</code> no tooltip is shown * @see #getToolTip */ public void setToolTip(String tooltip) { this.tooltip = tooltip; TrayIconPeer peer = this.peer; if (peer != null) { peer.setToolTip(tooltip); } }
Example 5
Source File: TrayIcon.java From jdk8u_jdk with GNU General Public License v2.0 | 3 votes |
/** * Sets the tooltip string for this <code>TrayIcon</code>. The * tooltip is displayed automatically when the mouse hovers over * the icon. Setting the tooltip to <code>null</code> removes any * tooltip text. * * When displayed, the tooltip string may be truncated on some platforms; * the number of characters that may be displayed is platform-dependent. * * @param tooltip the string for the tooltip; if the value is * <code>null</code> no tooltip is shown * @see #getToolTip */ public void setToolTip(String tooltip) { this.tooltip = tooltip; TrayIconPeer peer = this.peer; if (peer != null) { peer.setToolTip(tooltip); } }
Example 6
Source File: TrayIcon.java From openjdk-8 with GNU General Public License v2.0 | 3 votes |
/** * Sets the tooltip string for this <code>TrayIcon</code>. The * tooltip is displayed automatically when the mouse hovers over * the icon. Setting the tooltip to <code>null</code> removes any * tooltip text. * * When displayed, the tooltip string may be truncated on some platforms; * the number of characters that may be displayed is platform-dependent. * * @param tooltip the string for the tooltip; if the value is * <code>null</code> no tooltip is shown * @see #getToolTip */ public void setToolTip(String tooltip) { this.tooltip = tooltip; TrayIconPeer peer = this.peer; if (peer != null) { peer.setToolTip(tooltip); } }
Example 7
Source File: TrayIcon.java From openjdk-8-source with GNU General Public License v2.0 | 3 votes |
/** * Sets the tooltip string for this <code>TrayIcon</code>. The * tooltip is displayed automatically when the mouse hovers over * the icon. Setting the tooltip to <code>null</code> removes any * tooltip text. * * When displayed, the tooltip string may be truncated on some platforms; * the number of characters that may be displayed is platform-dependent. * * @param tooltip the string for the tooltip; if the value is * <code>null</code> no tooltip is shown * @see #getToolTip */ public void setToolTip(String tooltip) { this.tooltip = tooltip; TrayIconPeer peer = this.peer; if (peer != null) { peer.setToolTip(tooltip); } }
Example 8
Source File: TrayIcon.java From hottub with GNU General Public License v2.0 | 3 votes |
/** * Sets the tooltip string for this <code>TrayIcon</code>. The * tooltip is displayed automatically when the mouse hovers over * the icon. Setting the tooltip to <code>null</code> removes any * tooltip text. * * When displayed, the tooltip string may be truncated on some platforms; * the number of characters that may be displayed is platform-dependent. * * @param tooltip the string for the tooltip; if the value is * <code>null</code> no tooltip is shown * @see #getToolTip */ public void setToolTip(String tooltip) { this.tooltip = tooltip; TrayIconPeer peer = this.peer; if (peer != null) { peer.setToolTip(tooltip); } }
Example 9
Source File: TrayIcon.java From Java8CN with Apache License 2.0 | 3 votes |
/** * Sets the tooltip string for this <code>TrayIcon</code>. The * tooltip is displayed automatically when the mouse hovers over * the icon. Setting the tooltip to <code>null</code> removes any * tooltip text. * * When displayed, the tooltip string may be truncated on some platforms; * the number of characters that may be displayed is platform-dependent. * * @param tooltip the string for the tooltip; if the value is * <code>null</code> no tooltip is shown * @see #getToolTip */ public void setToolTip(String tooltip) { this.tooltip = tooltip; TrayIconPeer peer = this.peer; if (peer != null) { peer.setToolTip(tooltip); } }
Example 10
Source File: TrayIcon.java From jdk1.8-source-analysis with Apache License 2.0 | 3 votes |
/** * Sets the tooltip string for this <code>TrayIcon</code>. The * tooltip is displayed automatically when the mouse hovers over * the icon. Setting the tooltip to <code>null</code> removes any * tooltip text. * * When displayed, the tooltip string may be truncated on some platforms; * the number of characters that may be displayed is platform-dependent. * * @param tooltip the string for the tooltip; if the value is * <code>null</code> no tooltip is shown * @see #getToolTip */ public void setToolTip(String tooltip) { this.tooltip = tooltip; TrayIconPeer peer = this.peer; if (peer != null) { peer.setToolTip(tooltip); } }
Example 11
Source File: TrayIcon.java From openjdk-jdk9 with GNU General Public License v2.0 | 3 votes |
/** * Sets the tooltip string for this {@code TrayIcon}. The * tooltip is displayed automatically when the mouse hovers over * the icon. Tooltip may be not visible on some platforms. * Setting the tooltip to {@code null} removes any tooltip text. * * When displayed, the tooltip string may be truncated on some platforms; * the number of characters that may be displayed is platform-dependent. * * @param tooltip the string for the tooltip; if the value is * {@code null} no tooltip is shown * @see #getToolTip */ public void setToolTip(String tooltip) { this.tooltip = tooltip; TrayIconPeer peer = this.peer; if (peer != null) { peer.setToolTip(tooltip); } }
Example 12
Source File: TrayIcon.java From Bytecoder with Apache License 2.0 | 3 votes |
/** * Sets the tooltip string for this {@code TrayIcon}. The * tooltip is displayed automatically when the mouse hovers over * the icon. Tooltip may be not visible on some platforms. * Setting the tooltip to {@code null} removes any tooltip text. * * When displayed, the tooltip string may be truncated on some platforms; * the number of characters that may be displayed is platform-dependent. * * @param tooltip the string for the tooltip; if the value is * {@code null} no tooltip is shown * @see #getToolTip */ public void setToolTip(String tooltip) { this.tooltip = tooltip; TrayIconPeer peer = this.peer; if (peer != null) { peer.setToolTip(tooltip); } }
Example 13
Source File: TrayIcon.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 3 votes |
/** * Sets the tooltip string for this <code>TrayIcon</code>. The * tooltip is displayed automatically when the mouse hovers over * the icon. Setting the tooltip to <code>null</code> removes any * tooltip text. * * When displayed, the tooltip string may be truncated on some platforms; * the number of characters that may be displayed is platform-dependent. * * @param tooltip the string for the tooltip; if the value is * <code>null</code> no tooltip is shown * @see #getToolTip */ public void setToolTip(String tooltip) { this.tooltip = tooltip; TrayIconPeer peer = this.peer; if (peer != null) { peer.setToolTip(tooltip); } }
Example 14
Source File: TrayIcon.java From openjdk-jdk8u with GNU General Public License v2.0 | 3 votes |
/** * Sets the tooltip string for this <code>TrayIcon</code>. The * tooltip is displayed automatically when the mouse hovers over * the icon. Setting the tooltip to <code>null</code> removes any * tooltip text. * * When displayed, the tooltip string may be truncated on some platforms; * the number of characters that may be displayed is platform-dependent. * * @param tooltip the string for the tooltip; if the value is * <code>null</code> no tooltip is shown * @see #getToolTip */ public void setToolTip(String tooltip) { this.tooltip = tooltip; TrayIconPeer peer = this.peer; if (peer != null) { peer.setToolTip(tooltip); } }
Example 15
Source File: TrayIcon.java From JDKSourceCode1.8 with MIT License | 3 votes |
/** * Sets the tooltip string for this <code>TrayIcon</code>. The * tooltip is displayed automatically when the mouse hovers over * the icon. Setting the tooltip to <code>null</code> removes any * tooltip text. * * When displayed, the tooltip string may be truncated on some platforms; * the number of characters that may be displayed is platform-dependent. * * @param tooltip the string for the tooltip; if the value is * <code>null</code> no tooltip is shown * @see #getToolTip */ public void setToolTip(String tooltip) { this.tooltip = tooltip; TrayIconPeer peer = this.peer; if (peer != null) { peer.setToolTip(tooltip); } }
Example 16
Source File: TrayIcon.java From jdk8u60 with GNU General Public License v2.0 | 3 votes |
/** * Sets the tooltip string for this <code>TrayIcon</code>. The * tooltip is displayed automatically when the mouse hovers over * the icon. Setting the tooltip to <code>null</code> removes any * tooltip text. * * When displayed, the tooltip string may be truncated on some platforms; * the number of characters that may be displayed is platform-dependent. * * @param tooltip the string for the tooltip; if the value is * <code>null</code> no tooltip is shown * @see #getToolTip */ public void setToolTip(String tooltip) { this.tooltip = tooltip; TrayIconPeer peer = this.peer; if (peer != null) { peer.setToolTip(tooltip); } }
Example 17
Source File: TrayIcon.java From TencentKona-8 with GNU General Public License v2.0 | 3 votes |
/** * Sets the tooltip string for this <code>TrayIcon</code>. The * tooltip is displayed automatically when the mouse hovers over * the icon. Setting the tooltip to <code>null</code> removes any * tooltip text. * * When displayed, the tooltip string may be truncated on some platforms; * the number of characters that may be displayed is platform-dependent. * * @param tooltip the string for the tooltip; if the value is * <code>null</code> no tooltip is shown * @see #getToolTip */ public void setToolTip(String tooltip) { this.tooltip = tooltip; TrayIconPeer peer = this.peer; if (peer != null) { peer.setToolTip(tooltip); } }
Example 18
Source File: TrayIcon.java From dragonwell8_jdk with GNU General Public License v2.0 | 3 votes |
/** * Sets the tooltip string for this <code>TrayIcon</code>. The * tooltip is displayed automatically when the mouse hovers over * the icon. Setting the tooltip to <code>null</code> removes any * tooltip text. * * When displayed, the tooltip string may be truncated on some platforms; * the number of characters that may be displayed is platform-dependent. * * @param tooltip the string for the tooltip; if the value is * <code>null</code> no tooltip is shown * @see #getToolTip */ public void setToolTip(String tooltip) { this.tooltip = tooltip; TrayIconPeer peer = this.peer; if (peer != null) { peer.setToolTip(tooltip); } }