Einzelnen Beitrag anzeigen
Alt 19.09.2005, 18:44   #2
jak
Inventar
 
Registriert seit: 13.06.2001
Beiträge: 1.830


Standard Re: JTable Aktualisierung ?

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)
jak ist offline   Mit Zitat antworten