public class ButtonCreator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
BUTTON_DISABLED |
static boolean |
BUTTON_ENABLED |
static java.awt.Dimension |
LARGE_BUTTON_SIZE |
static java.awt.Dimension |
SMALL_BUTTON_SIZE |
Constructor and Description |
---|
ButtonCreator() |
Modifier and Type | Method and Description |
---|---|
static javax.swing.JButton |
createGenericButton(javax.swing.Icon icon,
java.lang.String buttonText,
java.lang.String actionCommand,
java.lang.String toolTip,
boolean enabled,
java.awt.Dimension dim,
java.awt.event.ActionListener actionListenerObject)
generic button making function used by: createIconicButton(), and
createTextButton()
|
static javax.swing.JButton |
createIconicButton(javax.swing.Icon icon,
java.lang.String actionCommand,
java.lang.String toolTip,
boolean enabled,
boolean large,
java.awt.event.ActionListener actionListener)
Create iconic button
|
static javax.swing.JButton |
createTextButton(java.lang.String buttonText,
java.lang.String actionCommand,
java.lang.String toolTip,
boolean enabled,
boolean large,
java.awt.event.ActionListener actionListener)
to create button with text
|
public static final boolean BUTTON_ENABLED
public static final boolean BUTTON_DISABLED
public static final java.awt.Dimension SMALL_BUTTON_SIZE
public static final java.awt.Dimension LARGE_BUTTON_SIZE
public static javax.swing.JButton createIconicButton(javax.swing.Icon icon, java.lang.String actionCommand, java.lang.String toolTip, boolean enabled, boolean large, java.awt.event.ActionListener actionListener)
public static javax.swing.JButton createTextButton(java.lang.String buttonText, java.lang.String actionCommand, java.lang.String toolTip, boolean enabled, boolean large, java.awt.event.ActionListener actionListener)
public static javax.swing.JButton createGenericButton(javax.swing.Icon icon, java.lang.String buttonText, java.lang.String actionCommand, java.lang.String toolTip, boolean enabled, java.awt.Dimension dim, java.awt.event.ActionListener actionListenerObject)