 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Nuno Silva Guest
|
Posted: Wed Apr 27, 2005 9:29 pm Post subject: 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
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|