please help!! problem with swings

hello there,im a btech studentand am doing a project on datastructure visualisation...its like i havae to demonstrate how simple algorithms work...my problem is that..i have created my gui and have left area in the gui where ihave to show the annimation..my animation and the gui are two different programs.. how do i combine them both???? please someone help fast my guide will killing me..