I am working on project where we have requirement that we need to create different jtables based on number of number of users. One table will be ceated for each user. So if there are 10 users, then we need to create 10 jtables. Kindly let me know if it is technically feasible. I tried to start solving problem by first creating number of jtables in for loop. However problem is that how will i select the jtable name at runtime. Other problem I am coming across is that how will jtable fit in the jframe. If any one has worked with this kind of problem please provide inputs. Thanks in advance.
add each table/scrollpane to a panel
add each panel to a CardLayout panel
add the CardLayout panel to a frame
add the userNames to a menu
link each menuItem to its respective user panel/table, via cardLayout.show(...)
I want each table on the same jframe. Here is my approach to problem,, create jscrollpanes and jtables in for loop. Then add jtable to scrollpane. I am keeping all the jscrollpanes in one Map. Now how can i add these jscrollpanes to jframe.