/*
 * $Id$
 *
 * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle,
 * Santa Clara, California 95054, U.S.A. All rights reserved.
 */
package org.jdesktop.swingx.plaf;

import org.jdesktop.swingx.JXHyperlink;

/**
 * Addon for <code>JXHyperlink</code>.<br>
 *
 */
public class JXHyperlinkAddon implements ComponentAddon {

  public String getName() {
    return "JXHyperlink";
  }

  public void initialize(LookAndFeelAddons addon) {
    addon.loadDefaults(new Object[] {JXHyperlink.uiClassID,
      "org.jdesktop.swingx.plaf.basic.BasicHyperlinkUI",});

//    if (addon instanceof WindowsLookAndFeelAddons) {
//      addon.loadDefaults(new Object[] {JXHyperlink.uiClassID,
//        "org.jdesktop.jdnc.plaf.windows.WindowsLinkButtonUI"});
//    }
  }

  public void uninitialize(LookAndFeelAddons addon) {
  }

}

@@ -210,16 +210,78 @@
 perlink;
+%0Aimport org.jdesktop.swingx.plaf.metal.MetalLookAndFeelAddons;
 %0A%0A/**%0A *
@@ -623,17 +623,17 @@
 );%0A%0A
-//
     if 
+(!
 (add
@@ -646,23 +646,21 @@
 tanceof 
-Windows
+Metal
 LookAndF
@@ -673,13 +673,12 @@
 ons)
+)
  %7B%0A
-//
     
@@ -735,18 +735,16 @@
 lassID,%0A
-//
         
@@ -761,12 +761,14 @@
 top.
-jdnc
+swingx
 .pla
@@ -788,27 +788,24 @@
 dows
-LinkButton
+Hyperlink
 UI%22%7D);%0A
-//
     

use WindowsHyperlinkUI for all but Metal (because Metal does not use textShiftOffset for buttons)