mutually exclusive actions

Discussion in 'Java' started by visionset, May 4, 2007.

  1. visionset

    visionset Guest

    I tend to use an AbstractAction subclass as a factory for the usual
    JButtons, JMenuItems etc.
    Now I want to use mutually exclusive controls in the same way. ButtonGroup
    seems the only inbuilt way to enforce mutual exclusivity. Would it be best
    to emulate a ButtonGroups functionallity but to track Actions?
    Now internally I guess ButtonGroup manages the deselections, so my group
    implementation will need to do that, but therefore my Action implementation
    will need to keep references to the mutually exclusive controls its factory
    methods create. Does this sound like a plan? Alternatives?

    --
    Mike W
     
    visionset, May 4, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ALuPin

    Mutually exclusive

    ALuPin, Sep 7, 2004, in forum: VHDL
    Replies:
    2
    Views:
    720
    Mike Treseler
    Sep 7, 2004
  2. js
    Replies:
    2
    Views:
    891
  3. Stimp
    Replies:
    2
    Views:
    805
    Stimp
    Oct 24, 2005
  4. Stimp
    Replies:
    5
    Views:
    5,980
    Greg Burns
    Nov 8, 2005
  5. Replies:
    0
    Views:
    622
Loading...

Share This Page