for (int j = 0; j < m_game.board.width; j++) { for (int k = 0; k < m_game.board.height; k++) { Hex h = m_game.board.getHex(j, k); paintHeight(g, h, j , k); } }
    private synchronized void drawMap() {        if (m_mapImage == null) {            return;        }        Graphics g = m_mapImage.getGraphics();        Color oldColor = g.getColor();        g.setColor(Color.black);        g.fillRect(0,0,getSize().width,getSize().height);        g.setColor(oldColor);        if (!minimized){            roadHexIndexes.removeAllElements();            for (int j = 0; j < m_game.board.width; j++) {                for (int k = 0; k < m_game.board.height; k++) {                    g.setColor(terrainColor(m_game.board.getHex(j, k), j, k));                    paintCoord(g, j, k, true);                }            }            if (! roadHexIndexes.isEmpty()) paintRoads(g);            for (Enumeration enum = m_game.getEntities(); enum.hasMoreElements(); ) {                Entity e = (Entity)enum.nextElement();                if (e.getPosition() == null) continue;                g.setColor(e.getOwner().getColor());                paintUnit(g, e.getPosition().x, e.getPosition().y, true);            }        }