How can i enable hardware acceleration in opengl program?

well,i wrote a opengl programm which runs at about 25 frames per second,but when i open a flash video(Adobe Flash Player),it runs at over 40 fps.
because “Adobe Flash Player” enables hardware acceleration defaultly,so my program is also accelerated too.
if i close the video,my program then runs at 25 fps again.
so how could i enable hardware acceleration in my program without opening the videos?
thanks for your reply

Sounds like it could be your graphics card not clocking up to 3D clocks for your game, or some other kind of power saving. Check CPU-Z and GPU-Z, and also update your drivers. I assume you’re using LWJGL or JOGL, and not Java2D?