which is the only layout manager that always honors the size of a component?
A. FlowLayout
B. GridLayout
C. BorderLayout
D. CardLayout
E. GridBagLayoutwhich of these are valid Event Listener interfaces? Select the two correct answers.
A. MouseMotionListener
B. WindowListener
C. DialogListener
D.PaintListener解答越详尽越好!!!

解决方案 »

  1.   

    1,B 网格布局是跟组件的数量有关系的。
    2,B,A
    查API
      

  2.   

    1.C     只有BorderLayout能在所有控件里找到
    2.A、B  API里面没有C和D两种接口
      

  3.   

    1.C     只有BorderLayout能在所有控件里找到
    2.A、B  API里面没有C和D两种接口
      

  4.   

    第二题没啥疑问,第一题什么意思啊?就是这句:always honors the size of a component? 
      

  5.   

    awt很久没用,忘得差不多了
    always honors the size of a component? 
    解释:总是优于元件的大小