public Packer setAnchorSouth ( final boolean how ) { if ( how == true ) { gc . anchor = GridBagConstraints . SOUTH ; } else { gc . anchor &= ~ GridBagConstraints . SOUTH ; } setConstraints ( comp , gc ) ; return this ; }
Add anchor = SOUTH to the constraints for the current component if how == true remove it if false .