All I want to do is when user selects one element on the JScrollPane and clicks button, I want to grab this object/element of the JList it holds. How can I do that?
See JList.getSelectedIndex() or JList.getSelectedValue().
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With