If you are using a JFrame, you should make the call to (assuming your JFrame is named frame)


frame.getContentPane().add(new JButton());

In most circumstances you would add the JButton to a...