insets

The insets field is an instance of the java.awt.Insets class. It specifies the padding between the component and the edges of its display area. For all the keys in the calculator applet the insets are set like this:

GBC_equals.insets = new Insets(3, 3, 3, 3);
which provides six pixels of space between each adjacent pair of keys (three from each key).


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