java - How to see what a use has chosen from a JList? -


recently, have been working on java jukebox program. far in program, user selects song jlist, , hits "play" jbutton. need have program find out choice chosen list , launch corresponding constructor. suggestions on how that?

-john

take @ jlist's getselected methods, in particular getselectedvalue() , getselectedvalues().


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -