How exactly camera works follow a moving object?

I am a new beginner on java 3d. I need to know how exactly does the camera follow a moving object that we controlled.please… ???

Look at the class ChaseCameraBehavior.java in the code repository at jnwn.dev.java.net

JK