titleLabel = new GenericLabel("Name:");
titleLabel.setGeometry(left, top + 3, labelWidth, labelHeight);
getScreen().attachWidget("Spoutcraft", titleLabel);
commandName = new GenericTextField();
commandName.setGeometry(right, top - 1, (int) (width - right - recordButton.getWidth() - 20), 16);
commandName.setText(item.getTitle());
commandName.setMaximumCharacters(0);
commandName.setPlaceholder("Enter a name here");
getScreen().attachWidget("Spoutcraft", commandName);
top += 23;
commandLabel = new GenericLabel("Command:");
commandLabel.setGeometry(left, top + 3, labelWidth, labelHeight);
getScreen().attachWidget("Spoutcraft", commandLabel);
commandText = new GenericTextField();
commandText.setGeometry(right, top - 1, width - right - 10, 16);
commandText.setMaximumCharacters(0);
commandText.setPlaceholder("Enter new command here, then click \"Add Command\"");
getScreen().attachWidget("Spoutcraft", commandText);
top += 23;
delayLabel = new GenericLabel("Delay (ms)");
delayLabel.setGeometry(left, top + 3, labelWidth, labelHeight);
getScreen().attachWidget("Spoutcraft", delayLabel);
delayText = new GenericTextField();
delayText.setGeometry(right, top - 1, width - right - 10, 16);
delayText.setText(item.getDelay() + "");
delayText.setTextProcessor(new GenericTextProcessor() {
protected boolean insert(char c) {
if (c >= '0' && c <= '9') {