O'Reilly logo
  • Thomas Kelly thinks this is interesting:

settings.setDepthBits(modes[0].getBitDepth());

From

Cover of jMonkeyEngine 3.0 Beginner's Guide

Note

This line should be:
settings.setBitsPerPixel(modes[0].getBitDepth());