buildAddRemoveBar
public static JPanel buildAddRemoveBar(JButton add,
JButton remove)
Builds and returns a filled button bar with Add and Remove.
add
- the Add buttonremove
- the Remove button
- a panel that contains the button(s)
buildAddRemoveLeftBar
public static JPanel buildAddRemoveLeftBar(JButton add,
JButton remove)
Builds and returns a left aligned button bar with
Add and Remove.
add
- the Add buttonremove
- the Remove button
- a panel that contains the button(s)
buildAddRemovePropertiesBar
public static JPanel buildAddRemovePropertiesBar(JButton add,
JButton remove,
JButton properties)
Builds and returns a filled button bar with Add, Remove, and
Properties.
add
- the Add buttonremove
- the Remove buttonproperties
- the Properties button
- a panel that contains the button(s)
buildAddRemovePropertiesLeftBar
public static JPanel buildAddRemovePropertiesLeftBar(JButton add,
JButton remove,
JButton properties)
Builds and returns a left aligned button bar with
Add, Remove, and Properties.
add
- the Add buttonremove
- the Remove buttonproperties
- the Properties button
- a panel that contains the button(s)
buildAddRemovePropertiesRightBar
public static JPanel buildAddRemovePropertiesRightBar(JButton add,
JButton remove,
JButton properties)
Builds and returns a right aligned button bar with
Add, Remove, and Properties.
add
- the Add buttonremove
- the Remove buttonproperties
- the Properties button
- a panel that contains the button(s)
buildAddRemoveRightBar
public static JPanel buildAddRemoveRightBar(JButton add,
JButton remove)
Builds and returns a right aligned button bar with
Add and Remove.
add
- the Add buttonremove
- the Remove button
- a panel that contains the button(s)
buildCenteredBar
public static JPanel buildCenteredBar(JButton button1)
Builds and returns a centered bar with one button.
button1
- the first button to add
- a button bar with the given button
buildCenteredBar
public static JPanel buildCenteredBar(JButton button1,
JButton button2)
Builds and returns a centered bar with two buttons.
button1
- the first button to addbutton2
- the second button to add
- a button bar with the given buttons
buildCenteredBar
public static JPanel buildCenteredBar(JButton button1,
JButton button2,
JButton button3)
Builds and returns a centered bar with three buttons.
button1
- the first button to addbutton2
- the second button to addbutton3
- the third button to add
- a button bar with the given buttons
buildCenteredBar
public static JPanel buildCenteredBar(JButton button1,
JButton button2,
JButton button3,
JButton button4)
Builds and returns a centered bar with four buttons.
button1
- the first button to addbutton2
- the second button to addbutton3
- the third button to addbutton4
- the fourth button to add
- a button bar with the given buttons
buildCenteredBar
public static JPanel buildCenteredBar(JButton button1,
JButton button2,
JButton button3,
JButton button4,
JButton button5)
Builds and returns a centered bar with five buttons.
button1
- the first button to addbutton2
- the second button to addbutton3
- the third button to addbutton4
- the fourth button to addbutton5
- the fifth button to add
- a button bar with the given buttons
buildCenteredBar
public static JPanel buildCenteredBar(JButton[] buttons)
Builds and returns a centered button bar with the given buttons.
buttons
- an array of buttons to add
- a centered button bar with the given buttons
buildCloseBar
public static JPanel buildCloseBar(JButton close)
Builds and returns a button bar with Close.
- a panel that contains the button(s)
buildCloseHelpBar
public static JPanel buildCloseHelpBar(JButton close,
JButton help)
Builds and returns a button bar with
Close and Help.
close
- the Close buttonhelp
- the Help button
- a panel that contains the button(s)
buildGrowingBar
public static JPanel buildGrowingBar(JButton button1)
Builds and returns a filled bar with one button.
button1
- the first button to add
- a button bar with the given button
buildGrowingBar
public static JPanel buildGrowingBar(JButton button1,
JButton button2)
Builds and returns a filled button bar with two buttons.
button1
- the first button to addbutton2
- the second button to add
- a button bar with the given buttons
buildGrowingBar
public static JPanel buildGrowingBar(JButton button1,
JButton button2,
JButton button3)
Builds and returns a filled bar with three buttons.
button1
- the first button to addbutton2
- the second button to addbutton3
- the third button to add
- a button bar with the given buttons
buildGrowingBar
public static JPanel buildGrowingBar(JButton button1,
JButton button2,
JButton button3,
JButton button4)
Builds and returns a filled bar with four buttons.
button1
- the first button to addbutton2
- the second button to addbutton3
- the third button to addbutton4
- the fourth button to add
- a button bar with the given buttons
buildGrowingBar
public static JPanel buildGrowingBar(JButton button1,
JButton button2,
JButton button3,
JButton button4,
JButton button5)
Builds and returns a filled bar with five buttons.
button1
- the first button to addbutton2
- the second button to addbutton3
- the third button to addbutton4
- the fourth button to addbutton5
- the fifth button to add
- a button bar with the given buttons
buildGrowingBar
public static JPanel buildGrowingBar(JButton[] buttons)
Builds and returns a button bar with the given buttons. All button
columns will grow with the bar.
buttons
- an array of buttons to add
- a filled button bar with the given buttons
buildHelpBar
public static JPanel buildHelpBar(JButton help,
JButton button1)
Builds and returns a right aligned bar with help and one button.
help
- the help button to add on the left sidebutton1
- the first button to add
- a button bar with the given buttons
buildHelpBar
public static JPanel buildHelpBar(JButton help,
JButton button1,
JButton button2)
Builds and returns a right aligned bar with help and two buttons.
help
- the help button to add on the left sidebutton1
- the first button to addbutton2
- the second button to add
- a button bar with the given buttons
buildHelpBar
public static JPanel buildHelpBar(JButton help,
JButton button1,
JButton button2,
JButton button3)
Builds and returns a right aligned bar with help and three buttons.
help
- the help button to add on the left sidebutton1
- the first button to addbutton2
- the second button to addbutton3
- the third button to add
- a button bar with the given buttons
buildHelpBar
public static JPanel buildHelpBar(JButton help,
JButton button1,
JButton button2,
JButton button3,
JButton button4)
Builds and returns a right aligned bar with help and four buttons.
help
- the help button to add on the left sidebutton1
- the first button to addbutton2
- the second button to addbutton3
- the third button to addbutton4
- the fourth button to add
- a button bar with the given buttons
buildHelpBar
public static JPanel buildHelpBar(JButton help,
JButton[] buttons)
Builds and returns a right aligned bar with help and other buttons.
help
- the help button to add on the left sidebuttons
- an array of buttons to add
- a right aligned button bar with the given buttons
buildHelpCloseBar
public static JPanel buildHelpCloseBar(JButton help,
JButton close)
Builds and returns a button bar with
Help and Close.
help
- the Help buttonclose
- the Close button
- a panel that contains the button(s)
buildHelpOKBar
public static JPanel buildHelpOKBar(JButton help,
JButton ok)
Builds and returns a button bar with
Help and OK.
help
- the Help buttonok
- the OK button
- a panel that contains the button(s)
buildHelpOKCancelApplyBar
public static JPanel buildHelpOKCancelApplyBar(JButton help,
JButton ok,
JButton cancel,
JButton apply)
Builds and returns a button bar with
Help, OK, Cancel and Apply.
help
- the Help buttonok
- the OK buttoncancel
- the Cancel buttonapply
- the Apply button
- a panel that contains the button(s)
buildHelpOKCancelBar
public static JPanel buildHelpOKCancelBar(JButton help,
JButton ok,
JButton cancel)
Builds and returns a button bar with
Help, OK and Cancel.
help
- the Help buttonok
- the OK buttoncancel
- the Cancel button
- a panel that contains the button(s)
buildLeftAlignedBar
public static JPanel buildLeftAlignedBar(JButton button1)
Builds and returns a left aligned bar with one button.
button1
- the first button to add
- a button bar with the given button
buildLeftAlignedBar
public static JPanel buildLeftAlignedBar(JButton button1,
JButton button2)
Builds and returns a left aligned bar with two buttons.
button1
- the first button to addbutton2
- the second button to add
- a button bar with the given buttons
buildLeftAlignedBar
public static JPanel buildLeftAlignedBar(JButton button1,
JButton button2,
JButton button3)
Builds and returns a left aligned bar with three buttons.
button1
- the first button to addbutton2
- the second button to addbutton3
- the third button to add
- a button bar with the given buttons
buildLeftAlignedBar
public static JPanel buildLeftAlignedBar(JButton button1,
JButton button2,
JButton button3,
JButton button4)
Builds and returns a left aligned bar with four buttons.
button1
- the first button to addbutton2
- the second button to addbutton3
- the third button to addbutton4
- the fourth button to add
- a button bar with the given buttons
buildLeftAlignedBar
public static JPanel buildLeftAlignedBar(JButton button1,
JButton button2,
JButton button3,
JButton button4,
JButton button5)
Builds and returns a left aligned bar with five buttons.
button1
- the first button to addbutton2
- the second button to addbutton3
- the third button to addbutton4
- the fourth button to addbutton5
- the fifth button to add
- a button bar with the given buttons
buildLeftAlignedBar
public static JPanel buildLeftAlignedBar(JButton[] buttons)
Builds and returns a left aligned button bar with the given buttons.
buttons
- an array of buttons to add
- a left aligned button bar with the given buttons
buildLeftAlignedBar
public static JPanel buildLeftAlignedBar(JButton[] buttons,
boolean leftToRightButtonOrder)
Builds and returns a left aligned button bar with the given buttons.
buttons
- an array of buttons to addleftToRightButtonOrder
- the order in which the buttons to add
- a left aligned button bar with the given buttons
buildOKBar
public static JPanel buildOKBar(JButton ok)
Builds and returns a button bar with OK.
- a panel that contains the button(s)
buildOKCancelApplyBar
public static JPanel buildOKCancelApplyBar(JButton ok,
JButton cancel,
JButton apply)
Builds and returns a button bar with OK, Cancel and Apply.
ok
- the OK buttoncancel
- the Cancel buttonapply
- the Apply button
- a panel that contains the button(s)
buildOKCancelApplyHelpBar
public static JPanel buildOKCancelApplyHelpBar(JButton ok,
JButton cancel,
JButton apply,
JButton help)
Builds and returns a button bar with
OK, Cancel, Apply and Help.
ok
- the OK buttoncancel
- the Cancel buttonapply
- the Apply buttonhelp
- the Help button
- a panel that contains the button(s)
buildOKCancelBar
public static JPanel buildOKCancelBar(JButton ok,
JButton cancel)
Builds and returns a button bar with OK and Cancel.
ok
- the OK buttoncancel
- the Cancel button
- a panel that contains the button(s)
buildOKCancelHelpBar
public static JPanel buildOKCancelHelpBar(JButton ok,
JButton cancel,
JButton help)
Builds and returns a button bar with
OK, Cancel, and Help.
ok
- the OK buttoncancel
- the Cancel buttonhelp
- the Help button
- a panel that contains the button(s)
buildOKHelpBar
public static JPanel buildOKHelpBar(JButton ok,
JButton help)
Builds and returns a button bar with
OK and Help.
ok
- the OK buttonhelp
- the Help button
- a panel that contains the button(s)
buildRightAlignedBar
public static JPanel buildRightAlignedBar(JButton button1)
Builds and returns a right aligned bar with one button.
button1
- the first button to add
- a button bar with the given button
buildRightAlignedBar
public static JPanel buildRightAlignedBar(JButton button1,
JButton button2)
Builds and returns a right aligned bar with two buttons.
button1
- the first button to addbutton2
- the second button to add
- a button bar with the given buttons
buildRightAlignedBar
public static JPanel buildRightAlignedBar(JButton button1,
JButton button2,
JButton button3)
Builds and returns a right aligned bar with three buttons.
button1
- the first button to addbutton2
- the second button to addbutton3
- the third button to add
- a button bar with the given buttons
buildRightAlignedBar
public static JPanel buildRightAlignedBar(JButton button1,
JButton button2,
JButton button3,
JButton button4)
Builds and returns a right aligned bar with four buttons.
button1
- the first button to addbutton2
- the second button to addbutton3
- the third button to addbutton4
- the fourth button to add
- a button bar with the given buttons
buildRightAlignedBar
public static JPanel buildRightAlignedBar(JButton button1,
JButton button2,
JButton button3,
JButton button4,
JButton button5)
Builds and returns a right aligned bar with five buttons.
button1
- the first button to addbutton2
- the second button to addbutton3
- the third button to addbutton4
- the fourth button to addbutton5
- the fifth button to add
- a button bar with the given buttons
buildRightAlignedBar
public static JPanel buildRightAlignedBar(JButton[] buttons)
Builds and returns a right aligned button bar with the given buttons.
buttons
- an array of buttons to add
- a right aligned button bar with the given buttons
buildRightAlignedBar
public static JPanel buildRightAlignedBar(JButton[] buttons,
boolean leftToRightButtonOrder)
Builds and returns a right aligned button bar with the given buttons.
buttons
- an array of buttons to addleftToRightButtonOrder
- the order in which the buttons to add
- a right aligned button bar with the given buttons
buildWizardBar
public static JPanel buildWizardBar(JButton back,
JButton next,
JButton finish,
JButton cancel)
Builds and returns a wizard button bar with:
Back, Next, Finish, Cancel.
back
- the Back buttonnext
- the Next buttonfinish
- the Finish buttoncancel
- the Cancel button
- a wizard button bar for back, next, finish, cancel
buildWizardBar
public static JPanel buildWizardBar(JButton help,
JButton back,
JButton next,
JButton finish,
JButton cancel)
Builds and returns a wizard button bar with:
Help and Back, Next, Finish, Cancel.
help
- the Help buttonback
- the Back buttonnext
- the Next buttonfinish
- the Finish buttoncancel
- the Cancel button
- a wizard button bar for help, back, next, finish, cancel
buildWizardBar
public static JPanel buildWizardBar(JButton back,
JButton next,
JButton[] rightAlignedButtons)
Builds and returns a wizard button bar that consists of the back and
next buttons, and some right aligned buttons.
back
- the mandatory back buttonnext
- the mandatory next buttonrightAlignedButtons
- an optional array of buttons that will be
located in the bar's right hand side
- a wizard button bar with back, next and a bunch of buttons
buildWizardBar
public static JPanel buildWizardBar(JButton[] leftAlignedButtons,
JButton back,
JButton next,
JButton overlayedFinish,
JButton[] rightAlignedButtons)
Builds and returns a wizard button bar. It consists of some left
aligned buttons, the back, next group, and some right aligned buttons.
To allow the finish button to overlay the next button, you can
optionally provide the overlayedFinish
parameter.
leftAlignedButtons
- an optional array of buttons that will be
positioned in the bar's left hand sideback
- the mandatory back buttonnext
- the mandatory next buttonoverlayedFinish
- the optional overlayed finish buttonrightAlignedButtons
- an optional array of buttons that will be
located in the bar's right hand side
- a wizard button bar with back, next and a bunch of buttons
buildWizardBar
public static JPanel buildWizardBar(JButton[] leftAlignedButtons,
JButton back,
JButton next,
JButton[] rightAlignedButtons)
Builds and returns a wizard button bar. It consists of some left
aligned buttons, the back and next buttons, and some right aligned
buttons.
leftAlignedButtons
- an optional array of buttons that will be
positioned in the bar's left hand sideback
- the mandatory back buttonnext
- the mandatory next buttonrightAlignedButtons
- an optional array of buttons that will be
located in the bar's right hand side
- a wizard button bar with back, next and a bunch of buttons