In short, my question is "how do you clone a jTable in a GUI developed in Netbeans."
In a little more detail, I have a
that consists of two tabs -
. Both tabs have a
that will display columns from a derby database. Any time the data in the database is updated, I want both
to update to reflect the new information. Essentially, the two
will show identical data in each cell, and any time a change is made to one there will be an automated change to the other.
Obviously, I could do this long-hand. Any time a subroutine (that changes the data in the database) is executed, I could have an
routine to make the changes. However, in my case the
function/method/subroutine would need to be a rather lengthy one, and
would consist of almost identical code to
. There would be a lot of redundant code.
In Neatbeans, is there a way to instantiate (or otherwise create) two
in such a way that they always mirror each others contents without writing the code out long-hand?