Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.jgoodies.uif_lite.component
Class Factory  view Factory download Factory.java

java.lang.Object
  extended bycom.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.4 $

Field Summary
private static java.awt.Insets TOOLBAR_BUTTON_MARGIN
          Defines the margin used in toolbar buttons.
 
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
 

Field Detail

TOOLBAR_BUTTON_MARGIN

private static final java.awt.Insets TOOLBAR_BUTTON_MARGIN
Defines the margin used in toolbar buttons.

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.


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.