mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't hide paintFocus() method to DarculaRadioButtonUI
This commit is contained in:
+11
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user