I don't have a ton of time right now but just to get you pointed in the right direction trying to achieve a 3D world in a JFrame is going to be a major pain. You'd be better off using a 3D API where all abilities to move around in 3D space is already done for you. Here are a few options. Google them as I am not putting them as links. They are easy to find.
LWJGL JOGL Java3D JMonkeyEngine Xith3D
And if it is just 2D you are looking for try something like