|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tbee.swing.JPanelUtils
public class JPanelUtils
| Field Summary | |
|---|---|
static int |
DIRECTION_DIAGONAL_LTBR
|
static int |
DIRECTION_DIAGONAL_RTBL
|
static int |
DIRECTION_HORIZONTAL
|
static int |
DIRECTION_VERTICAL
|
| Constructor Summary | |
|---|---|
JPanelUtils()
|
|
| Method Summary | |
|---|---|
static javax.swing.JPanel |
addMarginAround(java.awt.Component component,
int top,
int left,
int bottom,
int right)
Create a panel with an empty room around it |
static javax.swing.JPanel |
addMarginAround(int top,
int left,
int bottom,
int right,
java.awt.Component component)
Create a panel with an empty room around it |
static javax.swing.JPanel |
addToEast(java.awt.Component center,
java.awt.Component other)
|
static javax.swing.JPanel |
addToEast(java.awt.Component center,
java.awt.Component other,
boolean opaque)
|
static javax.swing.JPanel |
addToNorth(java.awt.Component center,
java.awt.Component other)
|
static javax.swing.JPanel |
addToNorth(java.awt.Component center,
java.awt.Component other,
boolean opaque)
|
static javax.swing.JPanel |
addToSouth(java.awt.Component center,
java.awt.Component other)
|
static javax.swing.JPanel |
addToSouth(java.awt.Component center,
java.awt.Component other,
boolean opaque)
|
static javax.swing.JPanel |
addToWest(java.awt.Component center,
java.awt.Component other)
|
static javax.swing.JPanel |
addToWest(java.awt.Component center,
java.awt.Component other,
boolean opaque)
|
static javax.swing.JPanel |
createBorderLayoutPanel()
Create a panel in which the components are laid out BorderLayout |
static javax.swing.JPanel |
createBorderLayoutPanel(java.awt.Component center,
java.awt.Component north,
java.awt.Component east,
java.awt.Component south,
java.awt.Component west)
Create a panel in which the components are laid out BorderLayout |
static javax.swing.JPanel |
createBorderLayoutPanel(java.awt.Component center,
java.awt.Component north,
java.awt.Component east,
java.awt.Component south,
java.awt.Component west,
boolean opaque)
Create a panel in which the components are laid out by BorderLayout |
static javax.swing.JPanel |
createGradientPanel()
Create panel with gradient |
static javax.swing.JPanel |
createGradientPanel(java.awt.Color c1,
java.awt.Color c2,
int direction)
Create panel with gradient |
static javax.swing.JPanel |
createGradientPanelAerith()
Use the Aerith colors (http://aerith.dev.java.net/), which is a more classy black / grey look |
static javax.swing.JPanel |
createGradientPanelAerith(java.awt.Component c)
|
static javax.swing.JPanel |
createGridPanel(int cols)
|
static javax.swing.JPanel |
createGridPanel(int cols,
java.awt.Component... components)
|
static javax.swing.JPanel |
createHorizontalButtonPanel()
|
static javax.swing.JPanel |
createHorizontalButtonPanel(java.awt.Component... components)
|
static javax.swing.JPanel |
createHorizontalPanel()
Create a panel in which the components are laid out horizontally You can also use Box.createHorizontalBox() |
static javax.swing.JPanel |
createHorizontalPanel(java.awt.Component... components)
Create a panel in which the components are laid out horizontally. |
static javax.swing.JPanel |
createHorizontalPanel(int spacing,
java.awt.Component... components)
Create a panel in which the components are laid out horizontally. |
static javax.swing.JPanel |
createHorizontalSplitterPanel()
Create a panel that support SplitterBars |
static javax.swing.JPanel |
createHorizontalSplitterPanel(java.lang.Object... components)
Create a panel that support SplitterBars |
static javax.swing.JPanel |
createPanel()
Create a transparent panel |
static javax.swing.JPanel |
createPanel(java.awt.LayoutManager layout)
Create a panel and set the layout manager |
static javax.swing.JPanel |
createPortletLookPanel(javax.swing.JLabel title,
java.awt.Color borderColor,
javax.swing.JComponent component)
create a panel with title, border and shadow |
static javax.swing.JPanel |
createPortletLookPanel(java.lang.String title,
javax.swing.JComponent component)
create a panel with title, border and shadow |
static javax.swing.JPanel |
createVerticalButtonPanel()
|
static javax.swing.JPanel |
createVerticalButtonPanel(java.awt.Component... components)
|
static javax.swing.JScrollPane |
createVerticalFlowJScrollPane()
Create a scrollpane that only has a vertical scrollbar and will layout components in lines and then down. |
static javax.swing.JScrollPane |
createVerticalFlowJScrollPane(java.awt.Component... components)
Create a scrollpane that only has a vertical scrollbar and will layout components in lines and then down. |
static javax.swing.JPanel |
createVerticalPanel()
Create a panel in which the components are laid out vertically You can also use Box.createVerticalBox(), this will only have no inner spacing. |
static javax.swing.JPanel |
createVerticalPanel(java.awt.Component... components)
Create a panel in which the components are laid out vertically Each component is given a small empty border to make sure it is a few pixels apart from the other (BoxLayout does not have a spacing). |
static javax.swing.JPanel |
createVerticalPanel(int spacing,
java.awt.Component... components)
Create a panel in which the components are laid out vertically Each component is given a small empty border to make sure it is a few pixels apart from the other (BoxLayout does not have a spacing). |
static javax.swing.JPanel |
createVerticalSplitterPanel()
Create a panel that support SplitterBars |
static javax.swing.JPanel |
createVerticalSplitterPanel(java.lang.Object... components)
Create a panel that support SplitterBars |
static java.awt.Container |
makeItTheBackground(java.awt.Container container,
javax.swing.JPanel panel)
A small utility function that adds the panel as the only component to the container and then returns the panel as the new container. |
static java.awt.Container |
makeItTheBackground(java.awt.Container container,
javax.swing.JPanel panel,
int top,
int left,
int bottom,
int right)
A small utility function that adds the panel as the only component to the container, insert an second panel inside that has a border, and then returns the inner most panel as the new container. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DIRECTION_HORIZONTAL
public static final int DIRECTION_VERTICAL
public static final int DIRECTION_DIAGONAL_LTBR
public static final int DIRECTION_DIAGONAL_RTBL
| Constructor Detail |
|---|
public JPanelUtils()
| Method Detail |
|---|
public static javax.swing.JPanel createPanel()
public static javax.swing.JPanel addMarginAround(java.awt.Component component,
int top,
int left,
int bottom,
int right)
component - top - left - bottom - right -
public static javax.swing.JPanel addMarginAround(int top,
int left,
int bottom,
int right,
java.awt.Component component)
component - top - left - bottom - right -
public static javax.swing.JPanel createPanel(java.awt.LayoutManager layout)
public static javax.swing.JPanel createHorizontalPanel()
public static javax.swing.JPanel createHorizontalPanel(java.awt.Component... components)
public static javax.swing.JPanel createHorizontalPanel(int spacing,
java.awt.Component... components)
public static javax.swing.JPanel createVerticalPanel()
public static javax.swing.JPanel createVerticalPanel(java.awt.Component... components)
public static javax.swing.JPanel createVerticalPanel(int spacing,
java.awt.Component... components)
public static javax.swing.JPanel createBorderLayoutPanel()
center - north - east - south - west -
public static javax.swing.JPanel createBorderLayoutPanel(java.awt.Component center,
java.awt.Component north,
java.awt.Component east,
java.awt.Component south,
java.awt.Component west)
center - north - east - south - west -
public static javax.swing.JPanel createBorderLayoutPanel(java.awt.Component center,
java.awt.Component north,
java.awt.Component east,
java.awt.Component south,
java.awt.Component west,
boolean opaque)
center - north - east - south - west - opaque -
public static javax.swing.JPanel addToEast(java.awt.Component center,
java.awt.Component other,
boolean opaque)
public static javax.swing.JPanel addToNorth(java.awt.Component center,
java.awt.Component other,
boolean opaque)
public static javax.swing.JPanel addToWest(java.awt.Component center,
java.awt.Component other,
boolean opaque)
public static javax.swing.JPanel addToSouth(java.awt.Component center,
java.awt.Component other,
boolean opaque)
public static javax.swing.JPanel addToEast(java.awt.Component center,
java.awt.Component other)
public static javax.swing.JPanel addToNorth(java.awt.Component center,
java.awt.Component other)
public static javax.swing.JPanel addToWest(java.awt.Component center,
java.awt.Component other)
public static javax.swing.JPanel addToSouth(java.awt.Component center,
java.awt.Component other)
public static javax.swing.JScrollPane createVerticalFlowJScrollPane()
public static javax.swing.JScrollPane createVerticalFlowJScrollPane(java.awt.Component... components)
public static javax.swing.JPanel createHorizontalSplitterPanel()
public static javax.swing.JPanel createHorizontalSplitterPanel(java.lang.Object... components)
public static javax.swing.JPanel createVerticalSplitterPanel()
public static javax.swing.JPanel createVerticalSplitterPanel(java.lang.Object... components)
public static javax.swing.JPanel createVerticalButtonPanel()
public static javax.swing.JPanel createVerticalButtonPanel(java.awt.Component... components)
public static javax.swing.JPanel createHorizontalButtonPanel()
public static javax.swing.JPanel createHorizontalButtonPanel(java.awt.Component... components)
public static javax.swing.JPanel createGridPanel(int cols)
public static javax.swing.JPanel createGridPanel(int cols,
java.awt.Component... components)
public static java.awt.Container makeItTheBackground(java.awt.Container container,
javax.swing.JPanel panel)
container - panel -
public static java.awt.Container makeItTheBackground(java.awt.Container container,
javax.swing.JPanel panel,
int top,
int left,
int bottom,
int right)
container - panel - top - left - bottom - right -
public static javax.swing.JPanel createGradientPanel()
public static javax.swing.JPanel createGradientPanel(java.awt.Color c1,
java.awt.Color c2,
int direction)
public static javax.swing.JPanel createGradientPanelAerith()
public static javax.swing.JPanel createGradientPanelAerith(java.awt.Component c)
public static javax.swing.JPanel createPortletLookPanel(java.lang.String title,
javax.swing.JComponent component)
public static javax.swing.JPanel createPortletLookPanel(javax.swing.JLabel title,
java.awt.Color borderColor,
javax.swing.JComponent component)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||