the package was included in the rar i put in the youtube video.
https://mega.nz/#!YcJgzbRb!evT7Or8qH...2zShjXzPp2zdEg
all you need to do is compile in that directory with this command ==> "javac MainPage.java -cp forms_rt.jar;."
My problem is not resolved. I still cant pass the value of a label to the index2 cardlayout.