However, I would suggest using JPanel instead of Container. It is not a good idea to mix AWT and SWING Components like you have done by using a JButton and Container.
Firstly, how would you use a JPanel instead of Container. Do you just mean place the button within a JPanel?
Secondly, why is it not a good idea to mix AWT and SWING components.
Cheers Gregg,
Daz...