Could someone tell me how to get the selected item of JList to a String? It is a single selection JList.
JList
String
Try this:
String selected = jList1.getSelectedValue();