I’m making this program in Java in which I sell stuff to those connected via socket. I’m loading the products and prices via JDBC just fine, but I want to display the product with the price next to it in a scrollable table. Right now I just have this JList in which I load the names of the products:
Please, click the link below to understand the question.

What elements should I use and how to accomplish what I’m needing?
Thanks for reading.
You need to use
JTablewithJScrollPaneUpdated reference example links:
this reference example and and this might help you