public class UIComponentUtils
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static void |
setLineWrap(UITextComponent comp)
自动换行
|
static void |
setLineWrap(UITextComponent comp,
int width)
到达指定宽度后换行
|
static void |
setPreferedWidth(javax.swing.JComponent comp,
int width) |
static javax.swing.JPanel |
wrapWithBorderLayoutPane(java.awt.Component comp)
将一个组件包装到 BorderLayout 布局的面板中
|
static javax.swing.JPanel |
wrapWithBorderLayoutPane(java.awt.Component comp,
java.lang.String layoutConstraint)
将一个组件包装到 BorderLayout 布局的面板中
|
public static void setLineWrap(UITextComponent comp, int width)
public static void setLineWrap(UITextComponent comp)
public static javax.swing.JPanel wrapWithBorderLayoutPane(java.awt.Component comp, java.lang.String layoutConstraint)
comp,待包装的组件
- layoutConstraint,添加的方向,如
- BorderLayout.NORTHpublic static javax.swing.JPanel wrapWithBorderLayoutPane(java.awt.Component comp)
comp,待包装的组件
- public static void setPreferedWidth(javax.swing.JComponent comp, int width)