closeContent(); showTrainList(); }
int id = trainList.getSelectedTrainID(); closeContent(); if(id != -1){ trainDialogueJPanel.display(); showContent(trainDialogueJPanel); } }
            public void actionPerformed(ActionEvent arg0) {                closeContent();                showTrainList();            }            