Re: JTables and dynamically adding data
- From: RedGrittyBrick <RedGrittyBrick@xxxxxxxxxxxxx>
- Date: Sun, 27 Apr 2008 18:52:14 +0100
Chase Preuninger wrote:
[Omitted context: using a button to add an extra column to an existing table]
every time you want to change it just create a new model and use the
setModel function in the JTable class to update the UI
That isn't necessary. Calling fireTableStructureChanged() is sufficient. See my example elsewhere in this thread.
--
RGB
.
- References:
- JTables and dynamically adding data
- From: michael . miceli88
- Re: JTables and dynamically adding data
- From: Chase Preuninger
- JTables and dynamically adding data
- Prev by Date: KeyEvent consume() not working on JTextField, what am I done wrong?
- Next by Date: Re: What is the difference and relation between an interface and its method?
- Previous by thread: Re: JTables and dynamically adding data
- Next by thread: WebGoo 4.0.0
- Index(es):