public void componentResized ( ComponentEvent e )
    {
        Dimension dim = getSize();
        boolean mustResize = false;

        if ( dim.width < MIN_WIDTH )
        {
             dim.width = MIN_WIDTH;
             mustResize = true;
        }

        if ( dim.height < MIN_HEIGHT )
        {
            dim.height = MIN_HEIGHT;
            mustResize = true;
        }

        if ( mustResize )
             setSize ( dim );
    }