I have a JTable. At the beginning the model is empty. Then I feed data
in the model but nothing happens. I just wrote a few
System.out.println(<name of the function>) at the beginning of all the
functions. It says I set the data in the model (5 rows) and then
getRowCount is called 5 times and each time returns 5. But the display
isn't refreshed and getValueAt is never called. After setting the rows
in the model, I do call repaint() but it doesn't seem to do anything
(The five calls to getRowCount() are made after I call repaint()).
I got another table which works fine. I couldn't find any difference in
the code. The only difference I see is that the one which works is
contained in a JScrollPane in a JFrame and the one which doesn't work is
in a JScrollPane in a JPanel in a JTabbedPane.
Has anybody experienced the same problem and solved it ?
Thanx
--
Henri BENOIT
Siemens AG
Medical Solutions
HS IMS I
Henkestrasse 127
91052 ERLANGEN
phone : +49 (0) 9131 84 6135
fax : +49 (0) 9131 84 2792
email : henri....@shs-online.de
---
la lettre seule tue, mais l' ESPRIT des lettres vivifie
Regards
Greg J.
HTH
Steve
"Henri Benoit" <henri....@shs-online.de> wrote in message
news:3AA64834...@shs-online.de...