Search:

Type: Posts; User: copeg

Search: Search took 0.09 seconds.

  1. [SOLVED] Re: Adding a value to a DefaultListModel via ListSelectionListener (JList)

    In the above code I'd recommend negating the e.getValueIsAdjusting() - the result is probably the same, but to be clear you only want events after adjustments have been made - the is adjusting value...
  2. [SOLVED] Re: Adding a value to a DefaultListModel via ListSelectionListener (JList)

    Use the getValueIsAdjusting method of ListSelectionEvent. If it is adjusting, one may wish to skip the event and wait for the another in which the value is not adjusting (eg the user has finished...
Results 1 to 2 of 2