public static JComponent createCommandButtonColumn ( JButton [ ] buttons ) { ButtonStackBuilder builder = new ButtonStackBuilder ( ) ; for ( int i = 0 ; i < buttons . length ; i ++ ) { if ( i > 0 ) { builder . addRelatedGap ( ) ; } builder . addGridded ( buttons [ i ] ) ; } return builder . getPanel ( ) ; }
Make a vertical row of buttons of equal size whch are equally spaced and aligned on the right .