TCPSegmentModel model = (TCPSegmentModel) plot.getDataset();
model.update(tcpObj);
ChartPanel connectChart = (ChartPanel) SystemInformationMonitorApp.getApplication().getView().getConnectionJPanel();
CategoryPlot connectPlot = (CategoryPlot) connectChart.getChart().getPlot();
TCPConnectionModel connectModel = (TCPConnectionModel) connectPlot.getDataset();
connectModel.update(tcpObj);
} finally {
threadLock.unlock();
}
}