本文整理汇总了Java中javax.swing.border.EtchedBorder.LOWERED属性的典型用法代码示例。如果您正苦于以下问题:Java EtchedBorder.LOWERED属性的具体用法?Java EtchedBorder.LOWERED怎么用?Java EtchedBorder.LOWERED使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类javax.swing.border.EtchedBorder
的用法示例。
在下文中一共展示了EtchedBorder.LOWERED属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: EtchTypePropertyEditor
public EtchTypePropertyEditor() {
super(
new int[] {
EtchedBorder.LOWERED,
EtchedBorder.RAISED,
},
new String[] {
"javax.swing.border.EtchedBorder.LOWERED", // NOI18N
"javax.swing.border.EtchedBorder.RAISED" // NOI18N
},
new String[] {
"VALUE_EtchLowered", // NOI18N
"VALUE_EtchRaised", // NOI18N
}
);
}
示例2: handleEtchedBorder
private final void handleEtchedBorder (org.xml.sax.AttributeList atts) {
String key = atts.getValue (KEY_ATTR);
int i = EtchedBorder.LOWERED;
String type = atts.getValue (TYPE_ATTR);
if (type != null)
i = type.equals (TYPE_LOWERED) ? EtchedBorder.LOWERED : EtchedBorder.RAISED;
BorderUIResource.EtchedBorderUIResource resource = new BorderUIResource.EtchedBorderUIResource (i);
defaults.put (key, resource);
}