Using MigLayout, how can I make JPanel appear <p>I have this ridiculously simple code (actually directly copied from the miglayout white paper: <a href="http://www.miglayout.com/whitepaper.html" rel="nofollow">http://www.miglayout.com/whitepaper.html</a>). I added the panel.setVisible(true) at the end. The problem is, with or without that last line, nothing shows up.</p> <pre><code>MigLayout layout = new MigLayout("fillx", "[right]rel[grow,fill]", "[]10[]"); JPanel panel = new JPanel(layout); panel.add(new JLabel("Enter size:"), ""); panel.add(new JTextField(""), "wrap"); panel.add(new JLabel("Enter weight:"), ""); panel.add(new JTextField(""), ""); panel.setVisible(true); </code></pre>