I have been created from a jettle vector. How can jetties be refreshed to display new data that has been added to the vector?
Your JTable should be updated automatically when there is a change in table modal But I think that you are not using your own table model and have just called the Jettable Constructor with your vector. In this case you can get a hook on the Table Module and put it in the default Tellable Model and then call a notification method to inform JTable about some changes about it:
DefaultTableModel model = (DefaultTableModel) table.getModel (); Model.fireTableChanged (new table mode event (........));
What would I recommend actually that she is using her own tablemodel until it is too insignificant, but the data you update It is, it indicates that it is not.
In this section, see the Sun Tutorial on the section indirectly.
It may appear more like work, but it will save you headache for a long time and correctly to do this
Comments
Post a Comment