final String title = BaseX.info(EDITTEXT, EDITKIND[kind]);
final BaseXLabel label = new BaseXLabel(title, true, true);
pp.add(label, BorderLayout.NORTH);
if(kind == Data.ELEM || kind == Data.DOC) {
final byte[] txt = kind == Data.ELEM ? data.tag(pre) : data.text(pre);
<BUG>input = new BaseXTextField(Token.string(txt), null, this);
old1 = input.getText();</BUG>
pp.add(input, BorderLayout.CENTER);
} else if(kind == Data.TEXT || kind == Data.COMM) {
setResizable(true);

final String title = BaseX.info(EDITTEXT, EDITKIND[kind]);
final BaseXLabel label = new BaseXLabel(title, true, true);
pp.add(label, BorderLayout.NORTH);
if(kind == Data.ELEM || kind == Data.DOC) {
final byte[] txt = kind == Data.ELEM ? data.tag(pre) : data.text(pre);
input = new BaseXTextField(string(txt), null, this);
old1 = input.getText();
pp.add(input, BorderLayout.CENTER);
} else if(kind == Data.TEXT || kind == Data.COMM) {
setResizable(true);
