src/share/classes/java/awt/SystemTray.java
Print this page
*** 61,72 ****
* An application may not create its own instance of
* <code>SystemTray</code>.
*
* <p>The following code snippet demonstrates how to access
* and customize the system tray:
- * <code>
* <pre>
* {@link TrayIcon} trayIcon = null;
* if (SystemTray.isSupported()) {
* // get the SystemTray instance
* SystemTray tray = SystemTray.{@link #getSystemTray};
* // load an image
--- 61,72 ----
* An application may not create its own instance of
* <code>SystemTray</code>.
*
* <p>The following code snippet demonstrates how to access
* and customize the system tray:
* <pre>
+ * <code>
* {@link TrayIcon} trayIcon = null;
* if (SystemTray.isSupported()) {
* // get the SystemTray instance
* SystemTray tray = SystemTray.{@link #getSystemTray};
* // load an image
*** 107,118 ****
* // the application state has changed - update the image
* if (trayIcon != null) {
* trayIcon.{@link TrayIcon#setImage(java.awt.Image) setImage}(updatedImage);
* }
* // ...
- * </pre>
* </code>
*
* @since 1.6
* @see TrayIcon
*
* @author Bino George
--- 107,118 ----
* // the application state has changed - update the image
* if (trayIcon != null) {
* trayIcon.{@link TrayIcon#setImage(java.awt.Image) setImage}(updatedImage);
* }
* // ...
* </code>
+ * </pre>
*
* @since 1.6
* @see TrayIcon
*
* @author Bino George