make 'No matches' bold

This commit is contained in:
Konstantin Bulenkov
2013-11-14 12:59:41 +01:00
parent 5d0e2d346c
commit baff9f0de3
@@ -208,7 +208,8 @@ public class EditorSearchComponent extends EditorHeaderComponent implements Data
}
else {
setNotFoundBackground();
myMatchInfoLabel.setText("No matches");
myMatchInfoLabel.setText("No matches ");
boldMatchInfo();
}
}
else {
@@ -898,7 +899,10 @@ public class EditorSearchComponent extends EditorHeaderComponent implements Data
}
private void boldMatchInfo() {
myMatchInfoLabel.setFont(myMatchInfoLabel.getFont().deriveFont(Font.BOLD));
Font font = myMatchInfoLabel.getFont();
if (!font.isBold()) {
myMatchInfoLabel.setFont(font.deriveFont(Font.BOLD));
}
}
private void setRegularBackground() {