0

In Swing it was possible to connect action to a button and button was reflecting action's parameters like icon, enableness, text and so on.

Is this also possible with ControlsFX' Action?

If yes then how?

Dims
  • 47,675
  • 117
  • 331
  • 600

1 Answers1

2

For an existing button you can use ActionUtils.configureButton(action, button).

To create a button bound to the action, use ActionUtils.createButton(action)

James_D
  • 201,275
  • 16
  • 291
  • 322