can any body pls explain :
1)what does pack() do here below??
2)my ans is as,borderlayout is the default mgr for frames,the 3 buttons will appear in center one on other,the top position occupied by three,am i right???
import java.awt.*;
public class FrameTest extends Frame {
public FrameTest() {
add (new Button("First"));
add (new Button("Second"));
add (new Button("Third"));
pack();
setVisible(true);
}
public static void main(
String args []) {
new FrameTest();
}
}