for (int i = 0; i< display.screens.length; i++) {
Screen screen = display.screens[i];
gnu.x11.Enum scrdepths = screen.depths();
while (scrdepths.more()) {
Depth depth = (Depth) scrdepths.next();
screenDepth.put(depth.depth(), depth);
gnu.x11.Enum enm = depth.visuals();
while (enm.more()) {
Visual visual = (Visual) enm.next();
screenVisual.put(visual.id(), visual);
}
}