JGoodies FormLayout question place buttons at center
Sethuraman Ramasubramanian
Greenhorn
Joined: Apr 26, 2009
Posts: 7
posted
0
I am trying to learn JGoodies FormLayout. I started working with the Default FormBuilder and I am having trouble aligning 2 buttons at the centre of the panel. I need to do this:
User Name Text Field
Password Text Field
..
..
..
Create Cancel
The create and cancel buttons should appear bang on the centre of the panel. The buttons always appear on the left not on the center. The code that I am using:
The button panel is only bound to the first column, with "fill:pref". You should include the colspan, 3:
This way the button bar will cover your entire row.
Rob Prime wrote:The button panel is only bound to the first column, with "fill:pref". You should include the colspan, 3:
This way the button bar will cover your entire row.
Oh thats great!!! Man I was so dumb! Was struggling with that for half a day! Thanks a lot. You just made my day.....