Hi,
I just ran across a talented Java Author, he has written a maze creation program which is free and you can download his sourse code to see how he has done it. Check this site out:
irrGardener -- the de·caff Maze Creation Program
http://www.caff.de/maze/index.shtmlEnjoy!