Enable / disable UI component

UI components can be enabled and disabled as needed. In the deactivated state, the UI components are significantly brightened. In addition, no events can be registered and thus no button actions can be executed.

Property:

  • Enabled- The flag enables / disables the UI component in the GUI builder and initially at runtime.

Example:

  • Disable UI component dynamically.

button.setEnabled(false);

image not found

  • UI component dynamically enable.

button.setEnabled(true);

image not found