本文整理汇总了Java中javax.swing.plaf.basic.BasicBorders.MarginBorder类的典型用法代码示例。如果您正苦于以下问题:Java MarginBorder类的具体用法?Java MarginBorder怎么用?Java MarginBorder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MarginBorder类属于javax.swing.plaf.basic.BasicBorders包,在下文中一共展示了MarginBorder类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getTextFieldBorder
import javax.swing.plaf.basic.BasicBorders.MarginBorder; //导入依赖的package包/类
static Border getTextFieldBorder()
/* 61: */ {
/* 62:122 */ if (textFieldBorder == null) {
/* 63:123 */ textFieldBorder = new BorderUIResource.CompoundBorderUIResource(new XPTextFieldBorder(null), new BasicBorders.MarginBorder());
/* 64: */ }
/* 65:127 */ return textFieldBorder;
/* 66: */ }
开发者ID:xiwc,项目名称:confluence.keygen,代码行数:8,代码来源:PlasticXPBorders.java
示例2: getEtchedBorder
import javax.swing.plaf.basic.BasicBorders.MarginBorder; //导入依赖的package包/类
static Border getEtchedBorder()
/* 65: */ {
/* 66:130 */ if (etchedBorder == null) {
/* 67:131 */ etchedBorder = new BorderUIResource.CompoundBorderUIResource(new EtchedBorder(null), new BasicBorders.MarginBorder());
/* 68: */ }
/* 69:135 */ return etchedBorder;
/* 70: */ }
开发者ID:xiwc,项目名称:confluence.keygen,代码行数:8,代码来源:PlasticBorders.java
示例3: getMenuBarHeaderBorder
import javax.swing.plaf.basic.BasicBorders.MarginBorder; //导入依赖的package包/类
static Border getMenuBarHeaderBorder()
/* 86: */ {
/* 87:166 */ if (menuBarHeaderBorder == null) {
/* 88:167 */ menuBarHeaderBorder = new BorderUIResource.CompoundBorderUIResource(new MenuBarHeaderBorder(null), new BasicBorders.MarginBorder());
/* 89: */ }
/* 90:171 */ return menuBarHeaderBorder;
/* 91: */ }
开发者ID:xiwc,项目名称:confluence.keygen,代码行数:8,代码来源:PlasticBorders.java
示例4: getMenuBorder
import javax.swing.plaf.basic.BasicBorders.MarginBorder; //导入依赖的package包/类
static Border getMenuBorder()
/* 94: */ {
/* 95:180 */ if (menuBorder == null) {
/* 96:181 */ menuBorder = new BorderUIResource.CompoundBorderUIResource(new MenuBorder(null), new BasicBorders.MarginBorder());
/* 97: */ }
/* 98:185 */ return menuBorder;
/* 99: */ }
开发者ID:xiwc,项目名称:confluence.keygen,代码行数:8,代码来源:PlasticBorders.java
示例5: getSeparatorBorder
import javax.swing.plaf.basic.BasicBorders.MarginBorder; //导入依赖的package包/类
static Border getSeparatorBorder()
/* 147: */ {
/* 148:268 */ if (separatorBorder == null) {
/* 149:269 */ separatorBorder = new BorderUIResource.CompoundBorderUIResource(new SeparatorBorder(null), new BasicBorders.MarginBorder());
/* 150: */ }
/* 151:273 */ return separatorBorder;
/* 152: */ }
开发者ID:xiwc,项目名称:confluence.keygen,代码行数:8,代码来源:PlasticBorders.java
示例6: getTextFieldBorder
import javax.swing.plaf.basic.BasicBorders.MarginBorder; //导入依赖的package包/类
static Border getTextFieldBorder()
/* 155: */ {
/* 156:282 */ if (textFieldBorder == null) {
/* 157:283 */ textFieldBorder = new BorderUIResource.CompoundBorderUIResource(new TextFieldBorder(null), new BasicBorders.MarginBorder());
/* 158: */ }
/* 159:287 */ return textFieldBorder;
/* 160: */ }
开发者ID:xiwc,项目名称:confluence.keygen,代码行数:8,代码来源:PlasticBorders.java
示例7: getToolBarHeaderBorder
import javax.swing.plaf.basic.BasicBorders.MarginBorder; //导入依赖的package包/类
static Border getToolBarHeaderBorder()
/* 184: */ {
/* 185:332 */ if (toolBarHeaderBorder == null) {
/* 186:333 */ toolBarHeaderBorder = new BorderUIResource.CompoundBorderUIResource(new ToolBarHeaderBorder(null), new BasicBorders.MarginBorder());
/* 187: */ }
/* 188:337 */ return toolBarHeaderBorder;
/* 189: */ }
开发者ID:xiwc,项目名称:confluence.keygen,代码行数:8,代码来源:PlasticBorders.java
示例8: uiImpl
import javax.swing.plaf.basic.BasicBorders.MarginBorder; //导入依赖的package包/类
/**
* Ui impl.
*/
public static void uiImpl()
{
//>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> JButton相关ui属性设定
UIManager.put("Button.background",new ColorUIResource(BeautyEyeLNFHelper.commonBackgroundColor));
//Button.foreground的设定不起效,这可能是LNF里的bug,因NLLookAndFeel
//是继承自它们所以暂时无能为力,就这么的吧,以后再说
UIManager.put("Button.foreground",new ColorUIResource(BeautyEyeLNFHelper.commonForegroundColor));
//以下属性将决定按钮获得焦点时的焦点虚线框的绘制偏移量哦
UIManager.put("Button.dashedRectGapX",3);//windows LNF中默认是3
UIManager.put("Button.dashedRectGapY",3);//windows LNF中默认是3
UIManager.put("Button.dashedRectGapWidth",6);//windows LNF中默认是6
UIManager.put("Button.dashedRectGapHeight",6);//windows LNF中默认是6
UIManager.put("ButtonUI",org.jb2011.lnf.beautyeye.ch3_button.BEButtonUI.class.getName());
UIManager.put("Button.margin",new InsetsUIResource(6, 8, 6, 8));//new InsetsUIResource(6, 8, 6, 8));
//此border可以与Button.margin连合使用,而者之和即查整个Button的内衬哦
UIManager.put("Button.border" ,new org.jb2011.lnf.beautyeye.ch3_button.BEButtonUI
.XPEmptyBorder(new Insets(3,3,3,3)));//default is 3,3,3,3
//获得焦点时的虚线框颜色
UIManager.put("Button.focus",new ColorUIResource(130,130,130));
//>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> JToggleButton相关ui属性设定
//注意:本属性不要与ToggleButton.border混用,因为没有它的优先级高,
//另本参数如用InsetsUIResource则不会有效果,具体原因待查(本属性也将决定toolbar的整体高度和宽度哦)
UIManager.put("ToggleButton.margin",new Insets(3, 11, 3, 11));//4, 8, 4, 8));////4, 12, 4, 12));
UIManager.put("ToggleButton.background",new ColorUIResource(BeautyEyeLNFHelper.commonBackgroundColor));
UIManager.put("ToggleButton.foreground",new ColorUIResource(BeautyEyeLNFHelper.commonForegroundColor));
//用于ToggleButon被选中时的前景色
//注:在原WindowsLookAndFeel中,本属性存在(值是Color(0,0,0,))但在UI里没有用到
//,此处被jb2011定义为“选中时的前景色”,当然也可以自已定名称,参见 NLWindowsToggleButtonUI2.paintText(..)
UIManager.put("ToggleButton.focus",new ColorUIResource(BeautyEyeLNFHelper.commonForegroundColor));//new ColorUIResource(Color.white)));//
UIManager.put("ToggleButtonUI",org.jb2011.lnf.beautyeye.ch3_button.BEToggleButtonUI.class.getName());
//以下设置对ToggleButton在不加入到JToolBar时是有效果的哦!!!!!!!!!!!
Border toggleButtonBorder = new BorderUIResource(new MarginBorder());
// UIManager.put("ToggleButton.margin",new InsetsUIResource(2, 30, 2, 30));
UIManager.put("ToggleButton.border",toggleButtonBorder);
/* ~~注:这个属性是Jack Jiang为了更好的ui效果自已加的属性:焦点虚线的颜色 */
UIManager.put("ToggleButton.focusLine"
,new ColorUIResource(BeautyEyeLNFHelper.commonFocusedBorderColor.darker()));
/* ~~注:这个属性是Jack Jiang为了更好的ui效果自已加的属性:焦点虚线的高亮立体阴影颜色 */
UIManager.put("ToggleButton.focusLineHilight",new ColorUIResource(new Color(240,240,240)));
}
开发者ID:JackJiang2011,项目名称:beautyeye,代码行数:47,代码来源:__UI__.java
示例9: getButtonBorder
import javax.swing.plaf.basic.BasicBorders.MarginBorder; //导入依赖的package包/类
static Border getButtonBorder(Insets buttonMargin)
/* 32: */ {
/* 33: 79 */ return new BorderUIResource.CompoundBorderUIResource(new XPButtonBorder(buttonMargin), new BasicBorders.MarginBorder());
/* 34: */ }
开发者ID:xiwc,项目名称:confluence.keygen,代码行数:5,代码来源:PlasticXPBorders.java
示例10: getToggleButtonBorder
import javax.swing.plaf.basic.BasicBorders.MarginBorder; //导入依赖的package包/类
static Border getToggleButtonBorder(Insets buttonMargin)
/* 69: */ {
/* 70:134 */ return new BorderUIResource.CompoundBorderUIResource(new XPButtonBorder(buttonMargin), new BasicBorders.MarginBorder());
/* 71: */ }
开发者ID:xiwc,项目名称:confluence.keygen,代码行数:5,代码来源:PlasticXPBorders.java
示例11: getButtonBorder
import javax.swing.plaf.basic.BasicBorders.MarginBorder; //导入依赖的package包/类
static Border getButtonBorder(Insets buttonMargin)
/* 44: */ {
/* 45: 90 */ return new BorderUIResource.CompoundBorderUIResource(new ButtonBorder(buttonMargin), new BasicBorders.MarginBorder());
/* 46: */ }
开发者ID:xiwc,项目名称:confluence.keygen,代码行数:5,代码来源:PlasticBorders.java
示例12: getToggleButtonBorder
import javax.swing.plaf.basic.BasicBorders.MarginBorder; //导入依赖的package包/类
static Border getToggleButtonBorder(Insets buttonMargin)
/* 179: */ {
/* 180:320 */ return new BorderUIResource.CompoundBorderUIResource(new ToggleButtonBorder(buttonMargin, null), new BasicBorders.MarginBorder());
/* 181: */ }
开发者ID:xiwc,项目名称:confluence.keygen,代码行数:5,代码来源:PlasticBorders.java
示例13: createCompoundBorder
import javax.swing.plaf.basic.BasicBorders.MarginBorder; //导入依赖的package包/类
private static Border createCompoundBorder(final Border b) {
return new BorderUIResource.CompoundBorderUIResource(b, new MarginBorder());
}
开发者ID:shannah,项目名称:cn1,代码行数:4,代码来源:MetalBorders.java
注:本文中的javax.swing.plaf.basic.BasicBorders.MarginBorder类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论