0

Adding Jtable Data From Bottom To Top

Hi, I have a Jtable and I want to insert data into the table from bottom to top not the way the attached code (table) is done. How do I do that? https://code.sololearn.com/cETSuiuaSeMT/?ref=app

9th Feb 2023, 3:42 AM
Sibusiso Mbambo
2 Answers
0
The table is arranged in row and column. The data is coming from an array of letters from A-Z. I know I can reverse the letters and input them from Z-A but I want this to happen when a user click a button. I have two buttons, the 'prev' and the 'next' button. When I run the code the data will be entered from left to right and from top to button. When the user click the 'next' button the data will also be structured from left to right and from top to bottom. Now when the user click the 'prev' button I want the order to be reversed. Data be structured from right to left and from bottom to top. I have attached my calendar example for this question but instead of entering the days numbers I'm adding the letters only. https://code.sololearn.com/cETSuiuaSeMT/?ref=app
9th Feb 2023, 6:13 AM
Sibusiso Mbambo