This is a calculator applet in development. Its purpose is self-educational - an opportunity for me to learn things as I go along that will supplement the Java programming I learned at university (for example, my university course did not teach me how to manipulate Images). The nature of the project is a calculator applet in which the output consists almost entirely of Images - no buttons, no text fields. It will simulate a physical handheld calculator as closely as possible, for example the numbers on the display will look like LCD digits.
What's the best way to position the screen down six pixels and across six pixels so that it fits in the space allocated to it? The calculator base is an JPanel with an Image painted on it, and the screen is another JPanel within it, with another Image painted on it (the latter image is a stub).
A solution that (as far as I can tell) ought to work, but doesn't, is documented here.
The calculator pic:
The screen pic (stub): 