It is an issue with the LayoutManager. By default, the Content Pane of a JFrame will use a BorderLayout, which can stretch a component to fill the necessary space. Fix would be to use the appropriate...