Rob Spoor wrote:And which line is that in the above code? Because its line 71 is part of a comment.
Michael Dunn wrote:> Now if I can just figure out how to add text to the jlist from the jtextfield on a focuslost!
really a bad idea (many reasons why accidental loss of focus),
better to add a little 'add' button beside the textfield
Michael Dunn wrote:this is just for the add single button
(comment out your old method, in case you need it later)
replace with this
Michael Dunn wrote:> Here is what I have so far. Now I just get the "No duplicates please!" message whenever I add anything to lbSelection.
OK, this bit looks easily fixable
now it shouldn't 'always' show.
do you still need help on duplicates? or was this all you were after?
Michael Dunn wrote:do you really need to retain all the teams on the left?
Most similar-concept programs I've seen move the selection from the left to the right (or back),
meaning no possibility of duplicates.