getMinimumSize bug

Marko Rauhamaa kaffe@rufus.w3.org
Wed, 19 Aug 1998 23:28:15 -0700


I reported yesterday that new Button().getMinimumSize() is [50,50]
regardless of the preferred size. I found the immediate reason:
Component.java defines:

    public Dimension getMinimumSize() {
	return new Dimension( 50, 50);
    }

and that definition is not overridden by Button.java.

Is this how it is supposed to work? Don't the layout managers need this
information when space is scarce?


Marko

-- 
Marko Rauhamaa   mailto:marko.rauhamaa@iki.fi   http://www.iki.fi/pacujo/
Suomenkielinen esperantokurssi http://www.iki.fi/pacujo/esperanto/kurssi/
    Free Esperanto Course http://www.iki.fi/pacujo/esperanto/course/