你可能感兴趣的试题
采用BorderLayout布局管理,添加构件的时候需要在add()方法中说明添加到哪一个区域 采用BorderLayout布局管理时,每一个区域只能且必须放一个构件 采用BorderLayout布局管理时,不一定要所有的区域都有构件 采用BorderLayout布局管理,容器大小发生变化时,构件之间的相对位置不变,构件大小改变
Window Panel Frame Dialog
Frame frame1=new Frame("FlowLayout"); Frame frame1=new Frame("BorderLayout"); frame1=new Frame("example"); frame1.setLayout(new BorderLayout()); frame1.setLayout(new GridLayout(2,3));
BorderLayout FlowLayout GridLayout BoxLayout
Frame f=new Frame("FlowLayou"); Frame f=new Frame("BordcrLayout"); f=new Frame("example");setLayout(new BorderLayout()); setLayout(new GridLayout(2,3));
obsetLayout(new BorderLayout()); setLayout(new Borderkayout()); setLayout(BorderLayout()); obsetLayout(BorderLayout());
Frame frame1=new Frame ("FlowLayout"); frame1.setLayout ( new FlowLayout ()); Frame frame1=new Frame (" BorderLayout "); frame1.setLayout ( new BorderLayout ()); Frame frame1=new Frame ("example"); frame1.setLayout ( new BorderLayout ()); frame1.setLayout ( new GridLayout (2,3));
FlowLayout BorderLayout BoxLayout GridLayout
Frame f=new Frame("FlowLayou"); Frame f=new Frame("BorderLayout"); f=new Frame("example");setLayout(new BorderLayout()); setLayout(new GridLayout(2,3));
Frame f=new Frame("FlowLayou"); Frame f=new Frame("BorderLayout"); f=new Frame("example");f.setLayout(new BorderLayout()); setLayout(new GridLayout(2,3));
Frame frame1=new Frame ("FlowLayout");
frame1.setLayout ( new FlowLayout ()); Frame frame1=new Frame (" BorderLayout ");
frame1.setLayout ( new BorderLayout ()); Frame frame1=new Frame ("example");
frame1.setLayout ( new BorderLayout ()); frame1.setLayout ( new GridLayout (2,3));
Applet Panel Dialog ScrollBar
Frame是Window类的直接子类 Frame对象显示的效果是一个窗口 Frame被默认初始化为可见 Frame的默认布局管理器为BorderLayout
Frame frame1=new Frame("FlowLayout"); Frame frame1=new Frame("BorderLayout"); frame1=new Frame("example");
frame1.setLayout(new BorderLayout()); frame1.setLayout(new GridLayout(2,3));
Frame frame1=naew Frame("FlowLayout"); Frame frame1-new Frame("BorderLayout"); frame1=new Frame("example");
frame1.setLayout(new BorderLayout ()); frame1.setLayout(new GridLayout(2,3));
CardLayout GridLayout BorderLayout BoxLayout
Frame frame1=naew Frame("FlowLayout"); Frame frame1-new Frame("BorderLayout"); frame1=new Frame("example"); frame1.setLayout(new BorderLayout ()); frame1.setLayout(new GridLayout(2,3));