public void paint(Graphics g){
		for(SUIText text : texts){
			if(text.shouldPaint())
				text.paint(g);
		}
		if(number == 0){
			number = height /(texts.get(0).getHeight());
			texts.get(0).setY(texts.get(0).getY()+texts.get(0).getHeight()/2);
			for(int i =1; i<number; i++){
				SUIText sample = new SUIText(strings.size()>i 
						? strings.get(i) : "", x+5, 5+y+i*texts.get(0).getHeight()+texts.get(0).getHeight()/2);
				texts.add(sample);
			}
			int[] xPoints = {getX()+getWidth()-50, getX()+getWidth()-25, getX()+getWidth()};
			int[] yPoints = {getY()+50, getY(), getY()+50};
			arrowUp = new Polygon(xPoints, yPoints, 3);
			int[] yPoints1 = {getY()+getHeight()-50, getY()+getHeight(), getY()+getHeight()-50};
			arrowDown = new Polygon(xPoints, yPoints1, 3);
			update(g);
		}
		g.setColor(focused);
		g.fillPolygon(arrowUp);
		g.fillPolygon(arrowDown);
		if(selected != -1){
			SUIText sel = texts.get(selected);
			g.drawRect(sel.getX()-5, sel.getY()-sel.getHeight()/2, getWidth()-50, sel.getHeight()/2+5);
		}
	}