本文整理汇总了Java中javax.swing.border.EtchedBorder.RAISED属性的典型用法代码示例。如果您正苦于以下问题:Java EtchedBorder.RAISED属性的具体用法?Java EtchedBorder.RAISED怎么用?Java EtchedBorder.RAISED使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类javax.swing.border.EtchedBorder
的用法示例。
在下文中一共展示了EtchedBorder.RAISED属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例3: getObject
protected EtchedBorder getObject() {
return new EtchedBorder(EtchedBorder.RAISED, Color.RED, Color.BLUE);
}
示例4: getObject
protected EtchedBorderUIResource getObject() {
return new EtchedBorderUIResource(EtchedBorder.RAISED);
}
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:3,代码来源:javax_swing_plaf_BorderUIResource_EtchedBorderUIResource.java