软件包 | 描述 |
---|---|
java.awt |
包含创建用户界面和绘制图形和图像的所有类。
|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
javax.swing.plaf.basic |
根据基本的外观和感觉提供内置的用户界面对象。
|
javax.swing.plaf.metal |
提供用户界面对象建立根据java的外观和感觉(一次代号为金属),它是默认的外观和感觉。
|
javax.swing.plaf.synth |
它是一个可更换皮肤的外观和感觉的绘画是授。
|
Modifier and Type | Interface and Description |
---|---|
interface |
LayoutManager2
定义了一个基于布局约束对象的类的接口,该接口知道如何布局容器。
|
Modifier and Type | Class and Description |
---|---|
class |
BorderLayout
边界布局勾画出一个集装箱,安排和调整其成分放在五个区域:北,南,东,西,和中心。
|
class |
CardLayout
一个
CardLayout 对象是一个容器的布局管理器。
|
class |
FlowLayout
流布局在一个方向流中排列组件,就像段落中的文本行一样。
|
class |
GridBagLayout
的
GridBagLayout 类是一个灵活的布局管理器的对齐部件垂直、水平或沿基线而不需要的组件是相同的大小。
|
class |
GridLayout
的
GridLayout 类是一个布局管理器,勾画出一个容器的组件在一个矩形网格。
|
Modifier and Type | Method and Description |
---|---|
LayoutManager |
Container.getLayout()
获取此容器的布局管理器。
|
Modifier and Type | Method and Description |
---|---|
void |
ScrollPane.setLayout(LayoutManager mgr)
设置此容器的布局管理器。
|
void |
Container.setLayout(LayoutManager mgr)
设置此容器的布局管理器。
|
Constructor and Description |
---|
Panel(LayoutManager layout)
创建一个新的面板与指定的布局管理器。
|
Modifier and Type | Class and Description |
---|---|
class |
BoxLayout
允许多个组件被垂直或水平布局的布局管理器。
|
class |
GroupLayout
GroupLayout 是
LayoutManager ,分层组组件来定位他们在
Container 。
|
protected class |
JRootPane.RootLayout
自定义布局管理器,负责layeredpane,glasspane布局和菜单栏。
|
static class |
JSpinner.DateEditor
一
JSpinner 的模型是一个
SpinnerDateModel 编辑。
|
static class |
JSpinner.DefaultEditor
一个简单的基类为更专门的编辑显示模式的电流值与
JFormattedTextField 只读视图。
|
static class |
JSpinner.ListEditor
一
JSpinner 的模型是一个
SpinnerListModel 编辑。
|
static class |
JSpinner.NumberEditor
一
JSpinner 的模型是一个
SpinnerNumberModel 编辑。
|
class |
OverlayLayout
一个布局管理器来安排组件在彼此的顶部。
|
class |
ScrollPaneLayout
用
JScrollPane 布局管理器。
|
static class |
ScrollPaneLayout.UIResource
ScrollPaneLayout 版本的UI资源。
|
class |
SpringLayout
一个
SpringLayout 勾画出其关联容器的孩子根据一组约束条件。
|
class |
ViewportLayout
对于
JViewport 默认的布局管理器。
|
Modifier and Type | Method and Description |
---|---|
protected LayoutManager |
JViewport.createLayoutManager()
subclassers可以重写此安装一个不同的布局管理器(或
null )在构造函数。
|
protected LayoutManager |
JRootPane.createRootLayout()
通过构造函数的方法来创建默认
layoutManager 。
|
Modifier and Type | Method and Description |
---|---|
void |
JDialog.setLayout(LayoutManager manager)
集
LayoutManager 。
|
void |
JApplet.setLayout(LayoutManager manager)
集
LayoutManager 。
|
void |
JFrame.setLayout(LayoutManager manager)
集
LayoutManager 。
|
void |
JLayer.setLayout(LayoutManager mgr)
设置此容器的布局管理器。
|
void |
JScrollPane.setLayout(LayoutManager layout)
设置此
JScrollPane 布局管理器。
|
void |
AbstractButton.setLayout(LayoutManager mgr)
设置此容器的布局管理器,是指
Container.setLayout(LayoutManager) 对本方法的完整描述。
|
void |
JWindow.setLayout(LayoutManager manager)
集
LayoutManager 。
|
void |
Box.setLayout(LayoutManager l)
抛出一个awterror,因为盒子可以只使用BoxLayout。
|
void |
JToolBar.setLayout(LayoutManager mgr) |
void |
JInternalFrame.setLayout(LayoutManager manager)
确保默认情况下,此组件的布局不能被设置。
|
Constructor and Description |
---|
JPanel(LayoutManager layout)
创建一个新的具有指定布局管理器缓冲JPanel
|
JPanel(LayoutManager layout, boolean isDoubleBuffered)
创建具有指定布局管理器和缓冲策略新JPanel。
|
Modifier and Type | Class and Description |
---|---|
class |
BasicComboBoxUI.ComboBoxLayoutManager
这个布局管理器处理组合框的“标准”布局。
|
class |
BasicInternalFrameTitlePane.TitlePaneLayout
这个类应该被视为一个“受保护的”内部类。
|
class |
BasicInternalFrameUI.InternalFrameLayout |
static class |
BasicOptionPaneUI.ButtonAreaLayout
ButtonAreaLayout 表现以类似的方式来
FlowLayout 。
|
class |
BasicScrollBarUI
对于基本看scrollbarui实施和感觉
|
protected class |
BasicSplitPaneDivider.DividerLayout
用于布局的
BasicSplitPaneDivider 。
|
class |
BasicSplitPaneUI.BasicHorizontalLayoutManager
为有horizontal_split取向jsplitpanes布局管理器。
|
class |
BasicSplitPaneUI.BasicVerticalLayoutManager
采用vertical_split取向jsplitpanes布局管理器。
|
class |
BasicTabbedPaneUI.TabbedPaneLayout
这个类应该被视为一个“受保护的”内部类。
|
class |
DefaultMenuLayout
弹出式菜单和菜单条的默认布局管理器。
|
Modifier and Type | Field and Description |
---|---|
protected LayoutManager |
BasicInternalFrameUI.internalFrameLayout |
Modifier and Type | Method and Description |
---|---|
protected LayoutManager |
BasicSpinnerUI.createLayout()
创建一个
LayoutManager 管理
editor ,
nextButton ,和JSpinner
previousButton 儿童。
|
protected LayoutManager |
BasicInternalFrameTitlePane.createLayout() |
protected LayoutManager |
BasicOptionPaneUI.createLayoutManager() |
protected LayoutManager |
BasicInternalFrameUI.createLayoutManager() |
protected LayoutManager |
BasicComboBoxUI.createLayoutManager()
创建一个用于管理组成组合框的组件的布局管理器。
|
protected LayoutManager |
BasicTabbedPaneUI.createLayoutManager()
通过
installUI 创建布局管理器对象来管理
JTabbedPane 。
|
Modifier and Type | Class and Description |
---|---|
class |
MetalComboBoxUI.MetalComboBoxLayoutManager
这个类应该被视为一个“受保护的”内部类。
|
class |
MetalScrollBarUI
对于金属scrollbarui实现的外观和感觉
|
class |
MetalTabbedPaneUI.TabbedPaneLayout
这个类应该被视为一个“受保护的”内部类。
|
Modifier and Type | Method and Description |
---|---|
protected LayoutManager |
MetalInternalFrameTitlePane.createLayout() |
protected LayoutManager |
MetalComboBoxUI.createLayoutManager() |
protected LayoutManager |
MetalTabbedPaneUI.createLayoutManager() |
Modifier and Type | Class and Description |
---|---|
class |
SynthScrollBarUI
提供合成L和F的UI代理为
JScrollBar 。
|
Modifier and Type | Method and Description |
---|---|
protected LayoutManager |
SynthToolBarUI.createLayout()
创建一个
LayoutManager 使用工具栏。
|
protected LayoutManager |
SynthSpinnerUI.createLayout()
创建一个
LayoutManager 管理
editor ,
nextButton ,和JSpinner
previousButton 儿童。
|
protected LayoutManager |
SynthTabbedPaneUI.createLayoutManager()
通过
installUI 创建布局管理器对象来管理
JTabbedPane 。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.