private ActivityButton createActivityButton() {
			ActivityButton b = new ActivityButton();
			b.setPage(page);
			if (uid != null) {
				b.setUid(uid);
				uid = null;
			}
			if (borderType != null) {
				b.setBorderType(borderType);
				borderType = null;
			}
			if (!opaque) {
				b.setOpaque(false);
				opaque = true;
			}
			else {
				if ((argb1 | ARGB_NOT_SET) != ARGB_NOT_SET) {
					b.setBackground(new Color(argb1));
					argb1 = ARGB_NOT_SET;
				}
			}
			Action a = null;
			if (actionName != null) {
				a = page.getActivityAction(actionName);
				if (a != null) {
					b.setAction(a);
					if (group != null) {
						b.setPageNameGroup(group);
						group = null;
					}
				}
			}
			b.setChangable(page.isEditable());
			if (titleText != null) {
				b.setText(titleText);
				titleText = null;
			}
			else {
				b.setText(actionName);
			}
			if (imageFileName != null) {
				if (!imageFileName.trim().equals("")) {
					Icon icon = page.loadImage(imageFileName);
					b.setIcon(icon);
					if (icon instanceof ImageIcon) {
						((ImageIcon) icon).setDescription(imageFileName);
					}
				}
				imageFileName = null;
			}
			if (toolTip != null) {
				b.setToolTipText(toolTip);
				toolTip = null;
			}
			if (width > 0 && height > 0) {
				b.setAutoSize(false);
				b.setPreferredSize(new Dimension((int) width, (int) height));
				width = height = 0;
			}
			if (description != null) {
				b.setReportTitle(description);
				description = null;
			}
			if (hintText != null) {
				b.putClientProperty("hint", hintText);
				hintText = null;
			}
			if (script != null) {
				b.putClientProperty("script", script);
				script = null;
			}
			if (gradeURI != null) {
				b.putClientProperty("grade_uri", gradeURI);
				gradeURI = null;
			}
			actionName = null;
			return b;
		}