48. Given the following code:
import java.awt.*;
public class Test extends Frame{
public static void main(String[] args){
Test x=new Test();
x.pack();
x.setVisible(true);}
public Test(){
setLayout(new GridLayout(2,2));
Panel p1=new Panel();
add(p1);
Button b1=new Button("One");
p1.add(b1);
Panel p2=new Panel();
add(p2);
Button b2=new Button("Two");
p2.add(b2);
Button b3=new Button("Three");
p2.add(b3);
Button b4=new Button("Four");
add(b4);
}}
What will happen when the frame is resized?
Select all correct answers:
A. All buttons' height is changed.
B. All buttons' width is changed.
C. The height of button "One" is changed.
D. The height of button "Two" is changed.
E. The width of button "Four" is changed.
F. Both the width and the height of button "Four" are changed.