public Color getColor() {
		GObject obj = this;
		while (obj.color == null) {
			GContainer parent = obj.getParent();
			if (parent instanceof GObject) {
				obj = (GObject) parent;
			} else if (parent instanceof Component) {
				return ((Component) parent).getForeground();
			} else {
				return Color.black;
			}
		}
		return obj.color;
	}