mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-13 07:17:13 -06:00
CheckBox and RadioButton: fixed NPE when button has children (similar to PR #68)
This commit is contained in:
@@ -6,6 +6,7 @@ FlatLaf Change Log
|
|||||||
- TextField, FormattedTextField and PasswordField: Support round borders (see UI
|
- TextField, FormattedTextField and PasswordField: Support round borders (see UI
|
||||||
default value `TextComponent.arc`). (issue #65)
|
default value `TextComponent.arc`). (issue #65)
|
||||||
- IntelliJ Themes: Added Gradianto themes to demo.
|
- IntelliJ Themes: Added Gradianto themes to demo.
|
||||||
|
- Button, CheckBox and RadioButton: Fixed NPE when button has children. (PR #68)
|
||||||
|
|
||||||
|
|
||||||
## 0.27
|
## 0.27
|
||||||
|
|||||||
@@ -101,6 +101,8 @@ public class FlatRadioButtonUI
|
|||||||
@Override
|
@Override
|
||||||
public Dimension getPreferredSize( JComponent c ) {
|
public Dimension getPreferredSize( JComponent c ) {
|
||||||
Dimension size = super.getPreferredSize( c );
|
Dimension size = super.getPreferredSize( c );
|
||||||
|
if( size == null )
|
||||||
|
return null;
|
||||||
|
|
||||||
// small insets fix
|
// small insets fix
|
||||||
int focusWidth = getIconFocusWidth( c );
|
int focusWidth = getIconFocusWidth( c );
|
||||||
|
|||||||
Reference in New Issue
Block a user