make sure you call pack() in the Frame class befre setVisible( true ).
pack will arrange all the components in the frame according to the
layout manager. if you call pack after setVisVisible( true ) you will
see all the components get shuffled arround when you call pack().