mercredi 1 juillet 2015

how to refresh the content of the jtable if you're using notepad to putting data in the jtable

table.repaint(); and tableModel.fireTableDataChanged(); doesn't work. I tried both of those function but the jtable wouldn't refresh. The notepad with more lines in it stays in the jTable when a lesser lined notepad is called.

I'm using BufferedReader and FileReader to read it from the notepad.

Is there anyway to refresh the table into its default then show the data from the notepad again? Thank you.

Aucun commentaire:

Enregistrer un commentaire