void setComment(final Comment comment) { String avatar = comment.getAuthor().getAvatar(); Icon icon = AllIcons.Ide.Warning_notifications; if (avatar != null) { try { icon = IconLoader.findIcon(new URL(avatar)); } catch (MalformedURLException e) { LOG.warn(e); } } myIconLabel.setIcon(icon); myMessageLabel.setText(XmlStringUtil.wrapInHtml(comment.getMessage())); RoundedLineBorder roundedLineBorder = new RoundedLineBorder(comment.isDraft() ? DRAFT_BORDER_COLOR : COMMENT_BORDER_COLOR, 20, 2); Border marginBorder = BorderFactory.createEmptyBorder(0, 0, UIUtil.DEFAULT_VGAP, 0); myMainPanel.setBorder(BorderFactory.createCompoundBorder(marginBorder, roundedLineBorder)); myMainPanel.setBackground(comment.isDraft() ? DRAFT_BG_COLOR : COMMENT_BG_COLOR); myPostLink.setVisible(comment.isDraft()); }
private static Border createFocusedBorder() { return BorderFactory.createCompoundBorder(new RoundedLineBorder(UIUtil.getHeaderActiveColor(), 10, BORDER_SIZE), JBUI.Borders.empty(2)); }
private static Border createFocusedBorder() { return BorderFactory.createCompoundBorder(new RoundedLineBorder(UIUtil.getHeaderActiveColor(), 10, BORDER_SIZE), INNER_MARGIN_BORDER); }
@Override public RoundedLineBorder create() { return IdeBorderFactory.createRoundedBorder(ArrangementConstants.BORDER_ARC_SIZE); }
@Override public RoundedLineBorder create() { return IdeBorderFactory.createRoundedBorder(ArrangementConstants.BORDER_ARC_SIZE, 2); }
RoundedLineBorder create();