移动端

  • 题王微信公众号

    题王微信公众号

    微信搜“题王网”真题密题、最新资讯、考试攻略、轻松拿下考试

多选题

Given the following code, which code fragments, when inserted at the indicated location, will succeed in making the program display a button spanning the whole window area?()   import java.awt.*;   public class Q1e65 {   public static void main(String args[]) {   Window win = new Frame();   Button but = new Button("button");   // insert code fragment here  win.setSize(200, 200);   win.setVisible(true);   }   }  

发布日期:2020-04-10

Given the following code, which code fragments, wh...
A

win.setLayout(new BorderLayout()); win.add(but);

B

win.setLayout(new GridLayout(1, 1)); win.add(but);

C

win.setLayout(new BorderLayout()); win.add(but, BorderLayout.CENTER);

D

win.add(but);

E

win.setLayout(new FlowLayout()); win.add(but);

题王网让考试变得更简单

扫码关注题王,更多免费功能准备上线!

此试题出现在

CMS专题

CMS专题

去刷题
热门试题热门资讯 相关试题

暂无相关推荐~