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:

equalsConstraints.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 | Cafe au Lait

Copyright 1997, 1998, 2002 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified November 1, 2002