B
Big Dave Smith
I'm new to swing, and I've run into a slight problem. I'm sure it's
simple, but I have not the knowledge to fix it.
I have a JTable, created using two Vectors. The vectors change every
so often based on other events in the gui, so the columns change. I'm
not sure what the proper way to update the table is, however. Do I
just rerun the createTable() method I've written, and then add it to
the layout manager again, and it replaces the old table? It seems like
there should be a cleaner and simpler way to do that.
Thanks for any help you can offer. I've been using Java for years now,
but this is my first week with Swing.
simple, but I have not the knowledge to fix it.
I have a JTable, created using two Vectors. The vectors change every
so often based on other events in the gui, so the columns change. I'm
not sure what the proper way to update the table is, however. Do I
just rerun the createTable() method I've written, and then add it to
the layout manager again, and it replaces the old table? It seems like
there should be a cleaner and simpler way to do that.
Thanks for any help you can offer. I've been using Java for years now,
but this is my first week with Swing.