public interface Border
在Swing组件集,边界代替插图为创建一个机制(装饰或平原)在组件的边缘地区。
使用说明:
setInsets
)。BorderFactory
,
EmptyBorder
,
CompoundBorder
Modifier and Type | Method and Description |
---|---|
Insets |
getBorderInsets(Component c)
返回边境的插图。
|
boolean |
isBorderOpaque()
返回是否边框是不透明的。
|
void |
paintBorder(Component c, Graphics g, int x, int y, int width, int height)
用指定的位置和大小绘制指定组件的边框。
|
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.