public void syncParseStyleButtons(){
  if (world.getTheParseStyle() == ParseStyle.CHARACTER) {
    charButton.setSelected(true);
  }
 else   if (world.getTheParseStyle() == ParseStyle.WORD) {
    wordButton.setSelected(true);
  }
}

public void syncParseStyleButtons ( ) { if ( world . getTheParseStyle ( ) == ParseStyle . CHARACTER ) { charButton . setSelected ( true ) ; } else if ( world . getTheParseStyle ( ) == ParseStyle . WORD ) { wordButton . setSelected ( true ) ; } }
syncs the parse style buttons to the underlying model state .
