getMinimumSize bug

Marko Rauhamaa marko at calnet28-100.gtecablemodem.com
Wed Aug 19 23:28:15 PDT 1998


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 at 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/


More information about the kaffe mailing list