+ 5

How can i add all table's data in a jlist in table form?

down votefavorite Example from a query like "select * from stock". I want to create a list that will display all table information in table form, and user can select choice as a row. I know how to add data in a list but as single items, doing it in tabular form from database(mysql) i a problem to me. If anyone can help this, please help, i will be greatfull.

30th Aug 2018, 10:06 PM
Mamuya, Gilbert .W
Mamuya, Gilbert .W - avatar
1 Réponse
+ 5
I assume you're going with Swing, because you mentioned JList. Well, maybe it's best to choose the obvious... JTable. Some helpful tutorials: https://docs.oracle.com/javase/tutorial/uiswing/components/table.html
2nd Sep 2018, 6:09 PM
Tashi N
Tashi N - avatar