com.jgoodies.uif_lite.component
Class Factory

java.lang.Object
  extended by com.jgoodies.uif_lite.component.Factory

public final class Factory
extends java.lang.Object

A very light version of the JGoodies UIFactory class. It consists only of static methods to create frequently used components.

Version:
$Revision: 1.1 $
Author:
Karsten Lentzsch

Constructor Summary
Factory()
           
 
Method Summary
static javax.swing.JScrollPane createStrippedScrollPane(java.awt.Component component)
          Creates and answers a JScrollPane that has an empty border.
static javax.swing.JSplitPane createStrippedSplitPane(int orientation, java.awt.Component comp1, java.awt.Component comp2, double resizeWeight)
          Creates and returns a JSplitPane that has empty borders.
static javax.swing.AbstractButton createToolBarButton(javax.swing.Action action)
          Creates and answers an AbstractButton configured for use in a JToolBar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Factory

public Factory()
Method Detail

createStrippedScrollPane

public static javax.swing.JScrollPane createStrippedScrollPane(java.awt.Component component)
Creates and answers a JScrollPane that has an empty border.


createStrippedSplitPane

public static javax.swing.JSplitPane createStrippedSplitPane(int orientation,
                                                             java.awt.Component comp1,
                                                             java.awt.Component comp2,
                                                             double resizeWeight)
Creates and returns a JSplitPane that has empty borders. Useful to avoid duplicate decorations, for example if the split pane is contained by other components that already provide a border.

Parameters:
orientation - the split pane's orientation: horizontal or vertical
comp1 - the top/left component
comp2 - the bottom/right component
resizeWeight - indicates how to distribute extra space
Returns:
a split panes that has an empty border

createToolBarButton

public static javax.swing.AbstractButton createToolBarButton(javax.swing.Action action)
Creates and answers an AbstractButton configured for use in a JToolBar.

Superceded by ToolBarButton from the JGoodies UI framework.