don't hide paintFocus() method to DarculaRadioButtonUI

This commit is contained in:
Konstantin Bulenkov
2016-10-21 14:16:19 +02:00
parent a46f1768b6
commit 8530df9f34
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2015 JetBrains s.r.o.
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -168,6 +168,16 @@ public class DarculaRadioButtonUI extends MetalRadioButtonUI {
mnemIndex, textRect.x, textRect.y + fm.getAscent());
}
}
if(b.hasFocus() && b.isFocusPainted() &&
textRect.width > 0 && textRect.height > 0 ) {
paintFocus(g, textRect, b.getSize());
}
}
@Override
protected void paintFocus(Graphics g, Rectangle t, Dimension d) {
}
@Override