Skip to content

Commit

Permalink
bug: use equals on strings since its an object
Browse files Browse the repository at this point in the history
  • Loading branch information
lquenti committed May 7, 2024
1 parent 7ac0b7a commit e3001ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/sc/fiji/labkit/ui/panel/GuiUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static JButton createActionIconButton(String name, final Action action,
{
JButton button = new JButton(action);
button.setText(name);
if (icon != "") {
if (icon.isEmpty()) {
button.setIcon(loadIcon(icon));
button.setIconTextGap(5);
button.setMargin(new Insets(button.getMargin().top, 3, button
Expand Down

0 comments on commit e3001ca

Please sign in to comment.