m_mapImage = createImage(getSize().width, getSize().height);
m_mapImage = createImage(Math.max(1, getSize().width), Math.max(1, getSize().height));
    private void initializeMap() {        m_dialog.show();        m_nPixWidth = getSize().width / m_game.board.width;        m_nPixHeight = getSize().height / m_game.board.height;        m_mapImage = createImage(getSize().width, getSize().height);        drawMap();    }