Module  java.desktop
软件包  java.awt

Interface LayoutManager

    • 方法详细信息

      • addLayoutComponent

        void addLayoutComponent​(String name,
                                Component comp)
        如果布局管理器使用每个组件字符串,则将组件 comp添加到布局,将其与 name指定的字符串相关联。
        参数
        name - 与组件关联的字符串
        comp - 要添加的组件
      • removeLayoutComponent

        void removeLayoutComponent​(Component comp)
        从布局中删除指定的组件。
        参数
        comp - 要删除的组件
      • layoutContainer

        void layoutContainer​(Container parent)
        放出指定的容器。
        参数
        parent - 要布置的容器