class DROP_DOWN{ //Initalize variables int x, y; float menuLength, optionHeight; String heading, lable; //where heading is selected option and lable is the String describing the drop down menu String [] optionsArray; color mouseOut, mouseOver, mouseClick; boolean menuOpen; BUTTON [] buttonsArray; //Attributes DROP_DOWN(int xTEMP, int yTEMP, int intialValue, String [] optionsArrayTEMP, String lableTEMP){ //Assign attributes x = xTEMP; y = yTEMP; //where the user enters the coordinates of the top left corner of the lable optionsArray = optionsArrayTEMP; lable = lableTEMP; optionHeight = textAscent()+textDescent()+6; menuLength = 0; for (int i=0; imenuLength){ menuLength = textWidth(optionsArray[i])+10; } } //Translate the coordinates so that x and y are the coordinates for the menu x+=textWidth(lable); //Setup heading = optionsArray[intialValue]; menuOpen = false; //Creates an array of buttons which will respresent the drop down menu buttonsArray = new BUTTON [optionsArray.length]; for (int i=0; ix)&&(mouseXy)&&(mouseYx)&&(mouseXy)&&(mouseYx)&&(mouseXy)&&(mouseYx)&&(mouseXy)&&(mouseY