diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/account/AccountListItemSkin.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/account/AccountListItemSkin.java index ea6b28dbf..1d4f05022 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/account/AccountListItemSkin.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/account/AccountListItemSkin.java @@ -21,6 +21,7 @@ import com.jfoenix.controls.JFXButton; import com.jfoenix.controls.JFXRadioButton; import com.jfoenix.effects.JFXDepthManager; import javafx.geometry.Pos; +import javafx.scene.Cursor; import javafx.scene.canvas.Canvas; import javafx.scene.control.Label; import javafx.scene.control.SkinBase; @@ -50,13 +51,11 @@ public final class AccountListItemSkin extends SkinBase { super(skinnable); BorderPane root = new BorderPane(); + root.setCursor(Cursor.HAND); + FXUtils.onClicked(root, skinnable::fire); - JFXRadioButton chkSelected = new JFXRadioButton() { - @Override - public void fire() { - skinnable.fire(); - } - }; + JFXRadioButton chkSelected = new JFXRadioButton(); + chkSelected.setMouseTransparent(true); BorderPane.setAlignment(chkSelected, Pos.CENTER); chkSelected.selectedProperty().bind(skinnable.selectedProperty()); root.setLeft(chkSelected);