Package org.jdesktop.swingx.renderer

Examples of org.jdesktop.swingx.renderer.WrappingIconPanel


        final boolean opaque = hasFocus || selected;

        result.setOpaque(opaque);
        if (result instanceof WrappingIconPanel) {
          WrappingIconPanel wip = (WrappingIconPanel) result;
          wip.getComponent().setOpaque(opaque);

          if (icon != null) {
            wip.setIcon(icon);
          }
        }
        return result;
      }
    });
View Full Code Here


      ((JComponent) component).setOpaque(opaque);
    }

    if (icon != null) {
      if (component instanceof WrappingIconPanel) {
        WrappingIconPanel wip = (WrappingIconPanel) component;
        wip.setIcon(icon);
        wip.getComponent().setOpaque(opaque);
      } else {
        logger.warn("Rendered TreeNode Component was not a WrappingIconPanel, cannot set icon!");
      }
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.swingx.renderer.WrappingIconPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.