user interface - How to transfer the elements from one JList to other JList in Java? -


I have two JLists on the swinging GUI. Now I want that when a user clicks on a button (the transfer button ) The selected elements of a jellist should be added from the first jellist to the second gelist and first remove those selected elements from the jellist.

Model does not know about selection.

The JList offers several ways to get selected items or selected indices. Use those methods to get the items and add them to the other list models.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -