TCPStatObject tcpObj = getTCPStat();
threadLock.lock(); // block until condition holds
try {
ChartPanel chart = (ChartPanel) SystemInformationMonitorApp.getApplication().getView().getTcpJPanel();
CategoryPlot plot = (CategoryPlot) chart.getChart().getPlot();
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);