class NUMBER_INPUT { //Initalize variables int numberOfDigits; boolean acceptKeyboard; int x; int y; int boxLength; int boxHeight; String measurement; int maxDigits; color mouseOut; color mouseOver; color mouseClick; int [] digitsArray; //Attributes NUMBER_INPUT(int xTEMP, int yTEMP, int boxLengthTEMP, int boxHeightTEMP, String measurementTEMP, int maxDigitsTEMP, color mouseOutTEMP, color mouseOverTEMP, color mouseClickTEMP){ //Assign attributes x = xTEMP; y = yTEMP; boxLength = boxLengthTEMP; boxHeight = boxHeightTEMP; measurement = measurementTEMP; maxDigits = maxDigitsTEMP; mouseOut = mouseOutTEMP; mouseOver = mouseOverTEMP; mouseClick = mouseClickTEMP; //Assign other variables numberOfDigits = 0; acceptKeyboard = false; digitsArray = new int [maxDigits]; //JUST FOR SMILIE digitsArray[0] = 3; numberOfDigits = 1; } //Methods //Draws the boxes void display(){ //Colour the box //When the box is clicked if (acceptKeyboard==true){ fill(mouseClick); } //When the mouse is over the box else if ((mouseX>x)&&(mouseXy)&&(mouseYx)&&(mouseXy)&&(mouseY