View RSS Feed

Java Swing

Java Swing tutorials.

  1. Enabling and Disabling of Components Which Share an Action

    by , 04-26-2012 at 08:50 PM
    When “enabled”, the bound property of Action is enabled/disabled, property change event is sent to property change listeners. The AbstractButton consist of “inner-class property change listener” that disables/enables the correspondent component.

    In case of ActionDemo applications, actions get initialized in initActions() method. Similar Actions set is shared among popup menu, toolbar, menu and also are used for construction of the UI controls in createPopupMenu(),createToolBar() and ...
    Categories
    Actions