Matrix on gui java