public void windowClosing(WindowEvent e) { PlayerWindow.Player.release(); playerwindow.getMediaFactory().release(); }