fill

The GridBagConstraints fill field determines whether and how a component is resized if the component's display area is larger than the component itself. The mnemonic constants you use to set this variable are

For the display area of the calculator screen use

    displayConstraints.fill = GridBagConstraints.HORIZONTAL;
because you'd like the screen to show as many digits as it can.

Previous | Next | Top


Last Modified June 30, 1998
Copyright 1997, 1998 Elliotte Rusty Harold
elharo@metalab.unc.edu