哪个布局管理器使用的是组件的最佳尺寸( preferred size)()A FlowLayoutB BorderLayoutC GridLayoutD CardLayoutE GridBagLayout

题目

哪个布局管理器使用的是组件的最佳尺寸( preferred size)()

A FlowLayout

B BorderLayout

C GridLayout

D CardLayout

E GridBagLayout


相似考题
更多“哪个布局管理器使用的是组件的最佳尺寸( preferred size)()A FlowLayoutB BorderLayoutC GridL ”相关问题
  • 第1题:

    Frame默认的布局管理器是( )。A.FlowLayoutB.BorderLayoutC.GridLayoutSXB

    Frame默认的布局管理器是( )。

    A.FlowLayout

    B.BorderLayout

    C.GridLayout

    D.UpLayout


    正确答案:B
    本题考查Java中的布局管理器。Flow-Layout是Pane和Applet默认的布局管理器,构件在容器中从上到下、从左到右进行放置;BorderLayout是Window、Frame和Dial09的默认布局管理器,在BorderLayout布局管理器中构件分成5个区域,每个区域只能放置-个构件;GridLayout使容器中各个构件呈网状布局,平均占据容器的空间;GardLayout把容器分成许多层,每层只能放置-个构件。

  • 第2题:

    下列Java布局管理器中,简单地将组件由左到右排列,排满一行,自动移到下一行的布局管理器是( )。

    A.FlowLayout

    B.BorderLayout

    C.GfidLayout

    D.BoxLayout


    正确答案:A
    解析:本题考查Java中布局管理器的知识。布局管理器中流式布局管理器(FlowLayout)的布局方式简单地将组件由左到右排列,排满一行,自动移到下一行。故本题答案是A。

  • 第3题:

    32、(布局管理器)下列不是AWT的布局管理器是_______。

    A.FlowLayout

    B.BorderLayout

    C.BoxLayout

    D.GridLayout


    BoxLayout

  • 第4题:

    Frame默认的布局管理器是

    A.FlowLayout

    B.BorderLayout

    C.GridLayout

    D.CardLayout


    正确答案:B
    解析:本题考查Java中的布局管理器。FlowLayout是Pane和Applet默认的布局管理器,构件在容器中从上到下、从左到右进行放置;BorderLayout是Window、Frame和Dialog的默认布局管理器,选项B正确,在BorderLayout布局管理器中,构件分成5个区域,每个区域只能放置一个构件:GridLayout使容器中各个构件呈网状布局,平均占据容器的空间:GardLayout把容器分成许多层,每层只能放置一个构件。

  • 第5题:

    (布局管理器)下列不是AWT的布局管理器是_______。

    A.FlowLayout

    B.BorderLayout

    C.BoxLayout

    D.GridLayout


    BoxLayout