本文整理汇总了Java中com.intellij.ui.IdeBorderFactory.TITLED_BORDER_RIGHT_INSET属性的典型用法代码示例。如果您正苦于以下问题:Java IdeBorderFactory.TITLED_BORDER_RIGHT_INSET属性的具体用法?Java IdeBorderFactory.TITLED_BORDER_RIGHT_INSET怎么用?Java IdeBorderFactory.TITLED_BORDER_RIGHT_INSET使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.intellij.ui.IdeBorderFactory
的用法示例。
在下文中一共展示了IdeBorderFactory.TITLED_BORDER_RIGHT_INSET属性的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setListLabels
public void setListLabels(@NotNull String left, @NotNull String right) {
// Border insets are used as a component insets (see JComponent.getInsets()). That's why an ugly bottom inset is used when
// we create a border with default insets. That is the reason why we explicitly specify bottom inset as zero.
Insets insets = new Insets(IdeBorderFactory.TITLED_BORDER_TOP_INSET,
IdeBorderFactory.TITLED_BORDER_LEFT_INSET,
0,
IdeBorderFactory.TITLED_BORDER_RIGHT_INSET);
myLeftPanel.setBorder(IdeBorderFactory.createTitledBorder(left, false, insets));
myRightPanel.setBorder(IdeBorderFactory.createTitledBorder(right, false, insets));
}