Changing the contents of a JList as per checkbox selected

Hi!

I am working on an interface form using JFrame and I need to change the contents of the JList control according to the selected checkbox out of five checkboxes.
How can I attach the ItemListener to the JFrame and check the conditions ?
Please help!


Comments

  • : Hi!
    :
    : I am working on an interface form using JFrame and I need to change the contents of the JList control according to the selected checkbox out of five checkboxes.
    : How can I attach the ItemListener to the JFrame and check the conditions ?
    : Please help!
    :
    :
    Add the itemListener to the checkboxes. You can get from the getSource() which box is selected.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion