Phong shader in JUCE opengl enviroment

I’m wondering, if someone can point me to a phong-shading example. I could sucessfully integrate the teapot example into my programming environmet, but I’m not hapopy with the shading. I tried to implemnt the phong shaders from the openGl wicki, but they seem to work only with glut. But glut run loop never returns, which is a no-go in my application.