trainDetailsJPanel1.listUpdated(key, index, p);
trainDetailsRenderer.trainDetailsJPanel.listUpdated(key, index, p); popupJButton.repaint();
    public void listUpdated(KEY key, int index, FreerailsPrincipal p) {        newTrainScheduleJPanel1.listUpdated(key, index, p);        trainDetailsJPanel1.listUpdated(key, index, p);    }