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