Zitat:
Original geschrieben von Frankster
Ich möchte, dass sich die JTable komplett neu füllt und nicht nur Zeilen löscht oder hinzufügt.
|
Dann ist es wohl am einfachsten du erstellst sie neu: JTable myTable = new JTable(zeilen);
Du musst dann allerdings auch dafür sorgen das die neue Tabelle auch angezeigt wird (z.B. in einer JScrollPane sp mit sp.getViewport().add(myTable);
jak
____________________________________
Join the DNRC |
Godwin\'s Law (thx@stona)
Documentation is like sex: If it\'s good, it\'s very, very good. If it\'s bad, it\'s better than nothing.
\"In theory, theory and practice are the same. In practice, they are not\" (Lawrence Berra)