charvax.swing

Class BorderFactory


public class BorderFactory
extends java.lang.Object

A factory class for creating standard instances of the Border class. In the genuine Swing library, this tries to share instances wherever possible. In the Charva library, all the borders (except TitleBorders) are actually just LineBorders.

Method Summary

static Border
createLineBorder(Color color_)
static Border
createLineBorder(Color color_, int thickness_)
Create a LineBorder - ignore the thickness.
static TitledBorder
createTitledBorder(String title)

Method Details

createLineBorder

public static Border createLineBorder(Color color_)

createLineBorder

public static Border createLineBorder(Color color_,
                                      int thickness_)
Create a LineBorder - ignore the thickness.

createTitledBorder

public static TitledBorder createTitledBorder(String title)