@Override
	public void draw()
	{
		glPushMatrix();

		glEnable(GL_BLEND);
		glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

		if(alpha>0)
		{
			if(mouseOver&&!clicked)
			{
				int os = 3;
				glColor4f(cRed, cGreen, cBlue, alpha);

				//Bottom
				glBegin(GL_QUADS);
				glVertex2f(xpos, ypos);
				glVertex2f(xpos+os, ypos+os);
				glVertex2f(xpos+width-os, ypos+os);
				glVertex2f(xpos+width, ypos);
				glEnd();

				//Right
				glBegin(GL_QUADS);
				glVertex2f(xpos+width, ypos);
				glVertex2f(xpos+width-os, ypos+os);
				glVertex2f(xpos+width-os, ypos+height-os);
				glVertex2f(xpos+width, ypos+height);
				glEnd();

				//Top
				glBegin(GL_QUADS);
				glVertex2f(xpos, ypos+height);
				glVertex2f(xpos+os, ypos+height-os);
				glVertex2f(xpos+width-os, ypos+height-os);
				glVertex2f(xpos+width, ypos+height);
				glEnd();

				//Left
				glBegin(GL_QUADS);
				glVertex2f(xpos, ypos);
				glVertex2f(xpos+os, ypos+os);
				glVertex2f(xpos+os, ypos+height-os);
				glVertex2f(xpos, ypos+height);
				glEnd();

				//Center
				glColor4f(red, green, blue, alpha);
				glBegin(GL_QUADS);
				glVertex2f(xpos+os, ypos+os);
				glVertex2f(xpos+os, ypos + height-os);
				glVertex2f(xpos + width -os, ypos + height-os);
				glVertex2f(xpos + width -os, ypos+os);
				glEnd();
			}
			else
			{
				if (clicked)
					glColor4f(cRed, cGreen, cBlue, alpha);
				else
					glColor4f(red, green, blue, alpha);
				glBegin(GL_QUADS);
				glVertex2f(xpos, ypos);
				glVertex2f(xpos, ypos + height);
				glVertex2f(xpos + width, ypos + height);
				glVertex2f(xpos + width, ypos);
				glEnd();
			}
		}

		drawText();
		glPopMatrix();
	}