private void displayChanged(){
  clock.set12HourDisplay(displayCheckBox.isSelected(),true);
  changed=true;
}

private void displayChanged ( ) { clock . set12HourDisplay ( displayCheckBox . isSelected ( ) , true ) ; changed = true ; }
method to handle 12 - hour display check box change
