public int size() {
        return displays.size();
    }
This function returns the size of the display ArrayList

@return the number of monitors available.
jme3-core/src/main/java/com/jme3/system/Displays.java