mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-210827 DarculaButtonUI.isSquare(Component) uses wrong instanceof test
This commit is contained in:
@@ -46,7 +46,7 @@ public class DarculaButtonUI extends BasicButtonUI {
|
||||
}
|
||||
|
||||
public static boolean isSquare(Component c) {
|
||||
return c instanceof JButton && "square".equals(((JButton)c).getClientProperty("JButton.buttonType"));
|
||||
return c instanceof AbstractButton && "square".equals(((AbstractButton)c).getClientProperty("JButton.buttonType"));
|
||||
}
|
||||
|
||||
public static boolean isDefaultButton(JComponent c) {
|
||||
|
||||
Reference in New Issue
Block a user