枚举类的使用
javax.swing.LayoutStyle.ComponentPlacement
-
LayoutStyle.ComponentPlacement 在 javax.swing 中的用法
修饰符和类型方法描述返回具有指定名称的此类的枚举常量。static LayoutStyle.ComponentPlacement[]LayoutStyle.ComponentPlacement.values()返回一个数组,其中包含此枚举类的常量,按照它们声明的顺序排列。javax.swing 中的方法,参数类型为 LayoutStyle.ComponentPlacement修饰符和类型方法描述GroupLayout.SequentialGroup.addPreferredGap(JComponent comp1, JComponent comp2, LayoutStyle.ComponentPlacement type) 添加一个元素,表示两个组件之间的首选间隙。GroupLayout.SequentialGroup.addPreferredGap(JComponent comp1, JComponent comp2, LayoutStyle.ComponentPlacement type, int pref, int max) 添加一个元素,表示两个组件之间的首选间隙。GroupLayout.SequentialGroup.addPreferredGap(LayoutStyle.ComponentPlacement type) 添加一个元素,表示最近的组件之间的首选间隙。GroupLayout.SequentialGroup.addPreferredGap(LayoutStyle.ComponentPlacement type, int pref, int max) 添加一个元素,表示最近的组件之间的首选间隙。abstract intLayoutStyle.getPreferredGap(JComponent component1, JComponent component2, LayoutStyle.ComponentPlacement type, int position, Container parent) 返回两个组件之间使用的空间量。