This is not related to OpenGL
if you just want to detect if two AABBs overlaps, you can fairly easily code it yourself:
for (AABB other : allAABBs)
sweep for collisions on x-axis: if other.min.x < this.max.x && other.max.x > this.min.x
if true sweep for collisions on y-axis: -
if true sweep for collisions on y-axis: -
if true yes they do collide.
If you have an insane amount of objects you could put them into an oct-tree, but the above approach is
very fast
If you want some thing more you should look into one of these:
http://www.google.dk/search?q=3D+physics+java&aq=f&oq=3D+physics+java&sugexp=chrome,mod=9&sourceid=chrome&ie=UTF-8or this:
http://jbullet.advel.cz/