下列关于程序运行结果的描述中,错误的是( )。impo
下列关于程序运行结果的描述中,错误的是( )。
import javax.swing.*;
import java.awt.*;
public class Test{
public static void main(String[] args){
JFrame f=new JFrame();
JPanel P=new JPanel();
f.setLayout(new BorderLayout());
f.getContentPane().add(P,"Center");
P.setBackground(Color.blue);
f.setVisible(true);
f.setSize(200,200);
}
}答案
A