Swing question





Hi, I'm pretty new to Swing, and I'm at the hello world example code from
java.sun.com. I'm trying to add next to the JLabel a JButton, and next to
frame.getContentPane().add(label); I do the same for the JButton created,
but in the GUI only shows the button. Can you explain to me why this happens
and why not appending the button next to the label? And how should I do to
make them put together?

Thanks in advance.

Nuno
.