|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
SimpleTableModel Refresh and Clear ValuesHi there!
I have a little problem with SimpleTableModel. I need to delete the values previously set to the table model. I tryied with setting a empty String[][] then invoke fireTableModelChanged but it keeps the same data.
How can I clear the rows of the TableModel? Thanks in advance for your time. Regards, AC -- Ing. Arturo Caballero jacaballero@... http://www.linkedin.com/in/jacaballero |
||
|
|
Re: SimpleTableModel Refresh and Clear Valueshello!
i have the same problem. actually it changes the table when I scroll the screen. how can I make it that it changes the table right away?? thx thomas |
||
|
|
Re: SimpleTableModel Refresh and Clear ValuesHi Thomas,
I understand by the docs that the metod fireTableModelChanged of the table model will update the model and the table related will be repainted too. Hope it helps. Regards!
On Wed, Dec 3, 2008 at 4:19 AM, atom83 <Thomas.Horvatits@...> wrote:
-- Ing. Arturo Caballero jacaballero@... http://www.linkedin.com/in/jacaballero |
||
|
|
Re: SimpleTableModel Refresh and Clear Valuesthanks for your reply! I have tried with fireTableModelChanged. without calling this method, changes arent affected, but with, it makes the changes but doesnt update the screen till I scroll. here my code: does anyone has an idea? thx thomas |
||
|
|
Re: SimpleTableModel Refresh and Clear ValuesHave you tried refreshing the Form with some method? I think there is a hierachy, where you have to refresh first the control that encapsulates other controls.
On Wed, Dec 3, 2008 at 9:49 AM, atom83 <Thomas.Horvatits@...> wrote:
-- Ing. Arturo Caballero jacaballero@... http://www.linkedin.com/in/jacaballero |
||
|
|
Re: SimpleTableModel Refresh and Clear ValuesI was looking for a refresh or repaint method either in the Form class or the Display, but couldn't find some?? thx |
||
|
|
Re: SimpleTableModel Refresh and Clear ValuesHi,
experienced the same problem with changing tablemodel dynamically. Finally opened the source code of tableItem class and found that in fireTableModelChanged method there is repaint(); string and it is commented!! Found in the web that somebody had copied the class into project folder and deleted the // in front of repaint(); You can leave everything as is and try that stupid solution: tableItem.setColorSchema(tableItem.getColorSchema); cause in this method of TableItem class repaint() left uncommented by the author. that worked with me. PS. neither of recommended in the web works but only this variant.
|
| Free embeddable forum powered by Nabble | Forum Help |