src/share/classes/java/awt/SystemTray.java

Print this page

        

@@ -61,12 +61,12 @@
  * 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>
+ * <code>
  *     {@link TrayIcon} trayIcon = null;
  *     if (SystemTray.isSupported()) {
  *         // get the SystemTray instance
  *         SystemTray tray = SystemTray.{@link #getSystemTray};
  *         // load an image

@@ -107,12 +107,12 @@
  *     // the application state has changed - update the image
  *     if (trayIcon != null) {
  *         trayIcon.{@link TrayIcon#setImage(java.awt.Image) setImage}(updatedImage);
  *     }
  *     // ...
- * </pre>
  * </code>
+ * </pre>
  *
  * @since 1.6
  * @see TrayIcon
  *
  * @author Bino George