setting size of elements



setSiz() is ignored...

JButton btn = new JButton("OK");
 public void init() {
getContentPane().add(btn);
   btn.setSize(80,20);
 }

applet is width=200 height=100, and this is size button comes out.. if I put btn.setSize(80,20); _before_ getContentPane().add(btn); line it's also ignored... pls, how do you control size of elements? thank you..

.


Quantcast