Uses of Interface
javax.swing.border.Border
-
Packages that use Border 软件包 描述 javax.swing 提供一套“轻量级”(全Java语言)组件,尽可能地在所有平台上工作。javax.swing.border 提供用于绘制Swing组件周围特殊边框的类和接口。javax.swing.plaf 提供一个接口和许多抽象类,Swing用来提供其可插拔的外观和感觉功能。javax.swing.plaf.basic 提供根据“基本”外观构建的用户界面对象。javax.swing.plaf.metal 提供根据Java外观构建的用户界面对象(一旦代号为 Metal ),这是默认的外观和感觉。javax.swing.table 提供处理javax.swing.JTable
类和接口。javax.swing.tree 提供处理javax.swing.JTree
类和接口。 -
-
Uses of Border in javax.swing
Fields in javax.swing declared as Border Modifier and Type Field 描述 protected static Border
DefaultListCellRenderer. noFocusBorder
没有焦点边界Methods in javax.swing that return Border Modifier and Type 方法 描述 static Border
BorderFactory. createBevelBorder(int type)
创建指定类型的斜角边框,使用组件的当前背景颜色的较亮的阴影突出显示,阴影的阴影更暗。static Border
BorderFactory. createBevelBorder(int type, Color highlight, Color shadow)
使用指定的高亮和阴影创建指定类型的斜角边框。static Border
BorderFactory. createBevelBorder(int type, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner)
创建指定类型的斜角边框,使用指定的颜色进行内部和外部高亮和阴影区域。static Border
BorderFactory. createDashedBorder(Paint paint)
创建指定的paint
的虚线边框。static Border
BorderFactory. createDashedBorder(Paint paint, float length, float spacing)
创建指定的paint
,相对length
和相对spacing
的虚线边框。static Border
BorderFactory. createDashedBorder(Paint paint, float thickness, float length, float spacing, boolean rounded)
创建指定的paint
,thickness
,相对length
和相对spacing
的虚线边框。static Border
BorderFactory. createEmptyBorder()
创建一个不占用空间的空白边框。static Border
BorderFactory. createEmptyBorder(int top, int left, int bottom, int right)
创建一个占用空间的空白边框,但没有绘制,指定顶部,左侧,底部和右侧的宽度。static Border
BorderFactory. createEtchedBorder()
使用组件的当前背景颜色创建具有“蚀刻”外观的边框,以突出显示和着色。static Border
BorderFactory. createEtchedBorder(int type)
使用组件的当前背景颜色创建具有“蚀刻”外观的边框,以突出显示和着色。static Border
BorderFactory. createEtchedBorder(int type, Color highlight, Color shadow)
使用指定的高亮和阴影颜色创建一个“蚀刻”外观的边框。static Border
BorderFactory. createEtchedBorder(Color highlight, Color shadow)
使用指定的高亮和阴影颜色创建一个“蚀刻”外观的边框。static Border
BorderFactory. createLineBorder(Color color)
创建具有指定颜色的线边框。static Border
BorderFactory. createLineBorder(Color color, int thickness)
创建具有指定颜色和宽度的线边框。static Border
BorderFactory. createLineBorder(Color color, int thickness, boolean rounded)
创建具有指定颜色,粗细和拐角形状的线条边框。static Border
BorderFactory. createLoweredBevelBorder()
使用降低的斜边创建边框,使用组件当前背景颜色的更亮的阴影突出显示,阴影阴影更暗。static Border
BorderFactory. createLoweredSoftBevelBorder()
创建一个具有下降边缘和软化角的斜边框,使用组件当前背景颜色的更亮的阴影突出显示,阴影阴影更暗。static Border
BorderFactory. createRaisedBevelBorder()
使用凸起的斜边创建边框,使用组件当前背景颜色的较亮的阴影突出显示,阴影阴影更暗。static Border
BorderFactory. createRaisedSoftBevelBorder()
使用凸起的边缘和软化的角落创建斜面边框,使用组件当前背景颜色的较亮的阴影突出显示,阴影阴影更暗。static Border
BorderFactory. createSoftBevelBorder(int type)
创建具有软化角的指定类型的斜切边框,使用组件当前背景颜色的更亮的阴影突出显示,阴影阴影更暗。static Border
BorderFactory. createSoftBevelBorder(int type, Color highlight, Color shadow)
使用指定的高亮和阴影创建具有软化角的指定类型的斜切边框。static Border
BorderFactory. createSoftBevelBorder(int type, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner)
创建具有软化角的指定类型的斜切边框,使用指定的颜色用于突出显示的内边缘和外边缘以及阴影区域。static Border
BorderFactory. createStrokeBorder(BasicStroke stroke)
创建指定的边框stroke
。static Border
BorderFactory. createStrokeBorder(BasicStroke stroke, Paint paint)
创建指定的stroke
和paint
。Border
JComponent. getBorder()
如果当前没有设置边框,则返回此组件的边框或null
。Border
JLayer. getBorder()
将其功能委托给getView().getBorder()
方法,如果视图组件是javax.swing.JComponent
的实例,否则返回null
。Border
UIDefaults. getBorder(Object key)
如果key
的值是Border
返回,否则返回null
。Border
UIDefaults. getBorder(Object key, Locale l)
如果key
为Locale
为Border
返回,否则返回null
。static Border
UIManager. getBorder(Object key)
从默认值返回一个边框。static Border
UIManager. getBorder(Object key, Locale l)
从适用于给定语言环境的默认值返回一个边框。Border
JScrollPane. getViewportBorder()
返回视口周围的Border
对象。Methods in javax.swing with parameters of type Border Modifier and Type 方法 描述 static CompoundBorder
BorderFactory. createCompoundBorder(Border outsideBorder, Border insideBorder)
创建一个复合边框,指定要用于外边和内边的边框对象。static TitledBorder
BorderFactory. createTitledBorder(Border border)
创建一个新的标题边框,一个空的标题,指定的边框对象,默认的文本位置(由当前的外观和感觉确定),默认对齐(前导)和默认的字体和文本颜色(由当前的外观和感觉)。static TitledBorder
BorderFactory. createTitledBorder(Border border, String title)
将标题添加到现有边框,默认定位(由当前外观确定),默认对齐(前导)和默认字体和文字颜色(由当前外观确定)。static TitledBorder
BorderFactory. createTitledBorder(Border border, String title, int titleJustification, int titlePosition)
将标题添加到现有边框中,并使用指定的定位,并使用默认的字体和文字颜色(由当前外观确定)。static TitledBorder
BorderFactory. createTitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont)
使用指定的定位和字体,使用默认文本颜色(由当前外观确定)将标题添加到现有边框。static TitledBorder
BorderFactory. createTitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)
使用指定的定位,字体和颜色将标题添加到现有边框。protected String
JComponent.AccessibleJComponent. getBorderTitle(Border b)
递归搜索具有非空标题的TitledBorder的边界层次结构(如果存在)。void
JComponent. setBorder(Border border)
设置此组件的边框。void
JLayer. setBorder(Border border)
将其功能委托给getView().setBorder(Border)
方法,如果视图组件是javax.swing.JComponent
的实例,否则此方法是无操作的。void
JViewport. setBorder(Border border)
视口通过正常的父/子剪辑(通常视图沿滚动的相反方向移动)“滚动”其孩子(称为“视图”)。void
JScrollPane. setViewportBorder(Border viewportBorder)
在视口周围添加一个边框。 -
Uses of Border in javax.swing.border
Classes in javax.swing.border that implement Border Modifier and Type Class 描述 class
AbstractBorder
实现无大小空白边框的类。class
BevelBorder
一个实现一个简单的两行斜角边框的类。class
CompoundBorder
一个复合的Border类,用于通过在Border对象的外部嵌套内嵌一个Border对象来将两个Border对象组合成一个单一的边框。class
EmptyBorder
一个提供一个空的透明边框的类,占用空间但不绘图。class
EtchedBorder
一个实现一个简单蚀刻边界的课程,可以被蚀刻或蚀刻出来。class
LineBorder
实现任意厚度和单一颜色的线边框的类。class
MatteBorder
一个提供纯色或平铺图标的无光泽边框的课程。class
SoftBevelBorder
实现具有软化拐角的凸起或降低的斜面的课程。class
StrokeBorder
实现任意笔画边框的课程。class
TitledBorder
一个实现一个任意边框的类,在一个指定的位置添加一个String标题和对齐。Fields in javax.swing.border declared as Border Modifier and Type Field 描述 protected Border
TitledBorder. border
边界。protected Border
CompoundBorder. insideBorder
内边界。protected Border
CompoundBorder. outsideBorder
外界。Methods in javax.swing.border that return Border Modifier and Type 方法 描述 static Border
LineBorder. createBlackLineBorder()
获取Color.black LineBorder厚度为1的便捷方法。static Border
LineBorder. createGrayLineBorder()
获得Color.gray LineBorder厚度为1的便捷方法。Border
TitledBorder. getBorder()
返回标题边框的边框。Border
CompoundBorder. getInsideBorder()
返回内部边框对象。Border
CompoundBorder. getOutsideBorder()
返回外部边框对象。Methods in javax.swing.border with parameters of type Border Modifier and Type 方法 描述 static Rectangle
AbstractBorder. getInteriorRectangle(Component c, Border b, int x, int y, int width, int height)
使用参数减去边框的插入返回一个矩形。void
TitledBorder. setBorder(Border border)
设置标题边框的边框。Constructors in javax.swing.border with parameters of type Border Constructor 描述 CompoundBorder(Border outsideBorder, Border insideBorder)
用指定的外部和内部边框创建复合边框。TitledBorder(Border border)
创建带有指定边框和空标题的TitledBorder实例。TitledBorder(Border border, String title)
创建带有指定边框和标题的TitledBorder实例。TitledBorder(Border border, String title, int titleJustification, int titlePosition)
创建一个带有指定边框,标题,标题对齐和标题位置的TitledBorder实例。TitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont)
创建带有指定边框,标题,标题对齐,标题位置和标题字体的TitledBorder实例。TitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)
创建带有指定边框,标题,标题对齐,标题位置,标题字体和标题颜色的TitledBorder实例。 -
Uses of Border in javax.swing.plaf
Classes in javax.swing.plaf that implement Border Modifier and Type Class 描述 class
BorderUIResource
实现UIResource的边界包装类。static class
BorderUIResource.BevelBorderUIResource
斜角边界UI资源。static class
BorderUIResource.CompoundBorderUIResource
复合边界UI资源。static class
BorderUIResource.EmptyBorderUIResource
一个空的边界UI资源。static class
BorderUIResource.EtchedBorderUIResource
蚀刻的边界UI资源。static class
BorderUIResource.LineBorderUIResource
线边界UI资源。static class
BorderUIResource.MatteBorderUIResource
无边界的UI资源。static class
BorderUIResource.TitledBorderUIResource
标题边界UI资源。Methods in javax.swing.plaf that return Border Modifier and Type 方法 描述 static Border
BorderUIResource. getBlackLineBorderUIResource()
返回黑线边框UI资源。static Border
BorderUIResource. getEtchedBorderUIResource()
返回蚀刻的边界UI资源。static Border
BorderUIResource. getLoweredBevelBorderUIResource()
返回降低的斜角边界UI资源。static Border
BorderUIResource. getRaisedBevelBorderUIResource()
返回凸起的边框边界UI资源。Constructors in javax.swing.plaf with parameters of type Border Constructor 描述 BorderUIResource(Border delegate)
创建一个包含现有Border实例的UIResource边框对象。CompoundBorderUIResource(Border outsideBorder, Border insideBorder)
构造一个CompoundBorderUIResource
。TitledBorderUIResource(Border border)
构造一个TitledBorderUIResource
。TitledBorderUIResource(Border border, String title)
构造一个TitledBorderUIResource
。TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition)
构造一个TitledBorderUIResource
。TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition, Font titleFont)
构造一个TitledBorderUIResource
。TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)
构造一个TitledBorderUIResource
。 -
Uses of Border in javax.swing.plaf.basic
Classes in javax.swing.plaf.basic that implement Border Modifier and Type Class 描述 static class
BasicBorders.ButtonBorder
画一个按钮周围的边框。static class
BasicBorders.FieldBorder
绘制一个字段周围的边框。static class
BasicBorders.MarginBorder
围绕支持边距的组件绘制边框。static class
BasicBorders.MenuBarBorder
绘制菜单栏周围的边框。static class
BasicBorders.RadioButtonBorder
绘制单选按钮周围的边框。static class
BasicBorders.RolloverButtonBorder
特殊的细边框,用于翻转工具栏按钮。static class
BasicBorders.SplitPaneBorder
画出裂缝周围的边界。static class
BasicBorders.ToggleButtonBorder
绘制切换按钮周围的边框。Fields in javax.swing.plaf.basic declared as Border Modifier and Type Field 描述 protected static Border
BasicComboBoxRenderer. noFocusBorder
一个空的Border
。Methods in javax.swing.plaf.basic that return Border Modifier and Type 方法 描述 protected Border
BasicToolBarUI. createNonRolloverBorder()
创建工具栏组件的非滚动边框。protected Border
BasicToolBarUI. createRolloverBorder()
为工具栏组件创建滚动边框。Border
BasicSplitPaneDivider. getBorder()
返回此组件的边框,如果当前未设置边框,则返回null。static Border
BasicBorders. getButtonBorder()
返回JButton
的边框实例。static Border
BasicBorders. getInternalFrameBorder()
返回JInternalFrame
的边框实例。static Border
BasicBorders. getMenuBarBorder()
返回JMenuBar
的边框实例。protected Border
BasicToolBarUI. getNonRolloverBorder(AbstractButton b)
返回按钮的非滚动边框。static Border
BasicBorders. getProgressBarBorder()
返回JProgressBar
的边框实例。static Border
BasicBorders. getRadioButtonBorder()
返回JRadioButton
的边框实例。protected Border
BasicToolBarUI. getRolloverBorder(AbstractButton b)
返回按钮的翻转边框。static Border
BasicBorders. getSplitPaneBorder()
返回JSplitPane
的边框实例。static Border
BasicBorders. getSplitPaneDividerBorder()
返回JSplitPane
分隔符的边框实例。static Border
BasicBorders. getTextFieldBorder()
返回JTextField
的边框实例。static Border
BasicBorders. getToggleButtonBorder()
返回JToggleButton
的边框实例。Methods in javax.swing.plaf.basic with parameters of type Border Modifier and Type 方法 描述 void
BasicSplitPaneDivider. setBorder(Border border)
设置此组件的边框。 -
Uses of Border in javax.swing.plaf.metal
Classes in javax.swing.plaf.metal that implement Border Modifier and Type Class 描述 static class
MetalBorders.ButtonBorder
该类代表JButton
的边界。static class
MetalBorders.Flush3DBorder
该类代表3D边框。static class
MetalBorders.InternalFrameBorder
该类代表JInternalFrame
的边界。static class
MetalBorders.MenuBarBorder
该类代表一个JMenuBar
的边界。static class
MetalBorders.MenuItemBorder
该类代表JMenuItem
的边界。static class
MetalBorders.OptionDialogBorder
该类表示选项对话框的边框。static class
MetalBorders.PaletteBorder
边框的调色板。static class
MetalBorders.PopupMenuBorder
该类代表一个JPopupMenu
的边界。static class
MetalBorders.RolloverButtonBorder
该类代表翻转的边界Button
。static class
MetalBorders.ScrollPaneBorder
该类代表一个JScrollPane
的边界。static class
MetalBorders.TableHeaderBorder
表头的边框static class
MetalBorders.TextFieldBorder
该类代表JTestField
的边界。static class
MetalBorders.ToggleButtonBorder
static class
MetalBorders.ToolBarBorder
该类代表一个JToolBar
的边界。Methods in javax.swing.plaf.metal that return Border Modifier and Type 方法 描述 protected Border
MetalToolBarUI. createNonRolloverBorder()
protected Border
MetalToolBarUI. createRolloverBorder()
static Border
MetalBorders. getButtonBorder()
返回JButton
的边框实例。static Border
MetalBorders. getDesktopIconBorder()
返回桌面图标的边框实例。static Border
MetalBorders. getTextBorder()
返回文本组件的边框实例。static Border
MetalBorders. getTextFieldBorder()
返回JTextField
的边框实例。static Border
MetalBorders. getToggleButtonBorder()
返回JToggleButton
的边框实例。 -
Uses of Border in javax.swing.table
Fields in javax.swing.table declared as Border Modifier and Type Field 描述 protected static Border
DefaultTableCellRenderer. noFocusBorder
边框无焦点。 -
Uses of Border in javax.swing.tree
Fields in javax.swing.tree declared as Border Modifier and Type Field 描述 protected Border
DefaultTreeCellEditor.DefaultTextField. border
边框使用。Methods in javax.swing.tree that return Border Modifier and Type 方法 描述 Border
DefaultTreeCellEditor.DefaultTextField. getBorder()
覆盖JComponent.getBorder
以返回当前边框。Methods in javax.swing.tree with parameters of type Border Modifier and Type 方法 描述 void
DefaultTreeCellEditor.DefaultTextField. setBorder(Border border)
设置此组件的边框。Constructors in javax.swing.tree with parameters of type Border Constructor 描述 DefaultTextField(Border border)
构造一个DefaultTreeCellEditor.DefaultTextField
对象。
-