void () { myColorSample.clear(); SimpleTextAttributes attributes = new SimpleTextAttributes(SimpleTextAttributes.STYLE_BOLD, myColor); String text = myLabelField.getText().trim(); myColorSample.append(text, attributes); myErrorPanel.removeAll(); if (myExistingMarkups.contains(text)) { myErrorPanel.add(new JLabel(XDebuggerBundle.message("xdebugger.mark.dialog.duplicate.warning"), UIUtil.getBalloonWarningIcon(), SwingConstants.LEFT)); } }