private void performLabelTransformation() { if (getModel().isCustomButton()) { setLayout(new FlowLayout(FlowLayout.CENTER, 0, 0)); _jLabel.setFont(IEHyperlinkWidget.getButtonFont()); _jLabel.setForeground(Color.WHITE); _jLabel.setBackground(getModel().getFlexoCSS().getButtonColor()); _jLabel.setOpaque(true); _jLabel.setBorder( BorderFactory.createMatteBorder(0, 15, 1, 15, getModel().getFlexoCSS().getButtonColor())); } else { setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); _jLabel.setFont(IECst.WOSTRING_FONT); _jLabel.setForeground(ColorCst.HYPERLINK_COLOR); _jLabel.setOpaque(false); _jLabel.setBorder(BorderFactory.createEmptyBorder(0, 10, 1, 10)); } }