Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JList's ListSelectionListener got called twice

843806Jul 30 2007 — edited Jul 30 2007
Hi all,

I have a JList which once i click a item in the list, this valueChanged method got called twice. I want it to be called once..

public void valueChanged(ListSelectionEvent e){
}

What do i do to make this method get fired up only once when i click a element from the list?

thanks. need to complete project soon... all comments are appreciated!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 27 2007
Added on Jul 30 2007
2 comments
487 views