Problem on JTable
Hi everybody,
I created a JTable, in which the data is coming from a server, when I am printing the JTable, the data is not populating but when ever i resize the any column of JTable the data is getting displayed,,,
So any one give me a better solution for this,
Regards,
# 1
did you try to repaint the jtable?
but it would be better if you post your SSCCE
http://mindprod.com/jgloss/sscce.html
# 3
> Hi,
> I tried with JTable repaint() method but nothing is
> happening so can u tell me is there any other
> solutions.....
I think it's time to post our SSCCE because imagination won't help at all.
# 5
You need to post a simple example of your code. Nothing containing all the libraries and stuff, just simple swing code that everyone can, copy, paste and compile. And this code must show what ever problem you have in action. (Got It?)
ICE
# 6
a) you update the TableModel and the table will repaint itself
b) make sure you update the TableModel in the GUI Event Thread. This can be done by wrapping your update code in a SwingUtilities.invokeLater(...).