Class GlossyTaskPaneUI

  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.PanelUI
          extended by org.jdesktop.swingx.plaf.TaskPaneUI
              extended by org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI
                  extended by org.jdesktop.swingx.plaf.misc.GlossyTaskPaneUI

public class GlossyTaskPaneUI
extends BasicTaskPaneUI

Paints the JXTaskPane with a gradient in the title bar.

Nested Class Summary
Nested classes/interfaces inherited from class org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI
BasicTaskPaneUI.ChevronIcon, BasicTaskPaneUI.ContentPaneBorder, BasicTaskPaneUI.PaneBorder
Field Summary
Fields inherited from class org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI
group, mouseListener, mouseOver, propertyListener, roundHeight, titleHeight
Constructor Summary
Method Summary
protected  Border createPaneBorder()
          Creates new border for task pane.
static ComponentUI createUI(JComponent c)
 void update(Graphics g, JComponent c)
          Overriden to paint the background of the component but keeping the rounded corners.
Methods inherited from class org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI
configure, createAction, createContentPaneBorder, createMouseInputListener, createPropertyListener, ensureVisible, getPreferredSize, getRoundHeight, getTitleHeight, installDefaults, installKeyboardActions, installListeners, installUI, isInBorder, uninstallListeners, uninstallUI
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, paint
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public GlossyTaskPaneUI()
Method Detail


public static ComponentUI createUI(JComponent c)


protected Border createPaneBorder()
Description copied from class: BasicTaskPaneUI
Creates new border for task pane.

createPaneBorder in class BasicTaskPaneUI
Fresh border on every call.


public void update(Graphics g,
                   JComponent c)
Overriden to paint the background of the component but keeping the rounded corners.

update in class ComponentUI
g - the Graphics context in which to paint
c - the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
See Also:
ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent), JComponent.paintComponent(java.awt.Graphics)