Updated frame initialization to first add components, pack (compact),
and then move to center of screen.