0
votes

If I have a variable/method in my fxml-file that undefined in my java-code and I create it automatically by alt-Enter, then I get a variable/method with public scope.

How me to change IntelliJ IDEA pattern for creating protected variable/method annotated by @FXML??

I have:

public Button btn;
public void onClick(...){
}

I want:

@FXML protected Button btn;
@FXML protected onClick(...){
}
1

1 Answers

0
votes

Set Default Visibility you need in Settings(Preferences) | Editor | Code Style | Java -> Code Generation tab.