Bad button minimum size?

Marko Rauhamaa marko at calnet28-100.gtecablemodem.com
Wed Aug 19 01:48:39 PDT 1998


I'm running kaffe 1.0-b1 under Red Hat 4.2. java.awt.Button seems to
report a bad minimum size. Here's a simple test application:

    import java.awt.*;
    
    public class Test extends Frame {
      public static void main(String[] args) {
	Button b = new Button("Button");
	System.out.println(b.getMinimumSize().toString());
	System.out.println(b.getPreferredSize().toString());
	System.exit(0);
      }
    }

It produces this output:

    java.awt.Dimension [50,50]
    java.awt.Dimension [53,26]

That is, the minimum height is 50 while the preferred height is 26.


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