Skip to content

Commit

Permalink
Set default values for width/height in Swing's FontIcon. Fixes #14
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Dec 13, 2017
1 parent 61b83f2 commit 7ee6ce3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public class FontIcon implements Icon {
private static final Object LOCK = new Object[0];

private Font font;
private int width;
private int height;
private int width = 16;
private int height = 16;
private BufferedImage buffer;

private int iconSize = 16;
Expand Down

0 comments on commit 7ee6ce3

Please sign in to comment.