本文整理匯總了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);
}