Dimension size = getSize(); boolean updateSize = false; if ( size.width < Settings.minimumSizeWidth ) { size.width = Settings.minimumSizeWidth; updateSize = true; } if ( size.height < Settings.minimumSizeHeight ) { size.height = Settings.minimumSizeHeight; updateSize = true; } if ( updateSize ) { setSize( size ); } setLocation( Settings.minimapPosX, Settings.minimapPosY );
    public MiniMap(Dialog d, Game g, BoardView1 bview) throws IOException {        m_game = g;        m_bview = bview;        m_dialog = d;        initializeColors();        m_game.board.addBoardListener(this);        addMouseListener(this);        addComponentListener(this);        m_dialog.addComponentListener(this);        m_dialog.setResizable(false);    }