Instead of setting the size on the JFrame using Demensions, use JFrame.pack()
See "Changing the Look and Feel After Startup"
http://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html#commandLine
That will solve most issues. For the rest, set some layout constraints with MigLayout such as
JPanel.add(new JButton(), "width 44")
There was an error while loading. Please reload this page.