Beispiel #1
0
protected void Edit (String txt)
    {
	state = stateEdit;
        EntryBox editor = new EntryBox ("Edit Node", "Enter node:", txt,
					this, null, frame);
        editor.pack();
        editor.show();
    }
Beispiel #2
0
public void entryBoxHandler (EntryBox e, Object arg)
    {
	if (state != stateEdit)
	    return;
	state = stateIdle;
	if (e.GetButton() == 0) {
	    curnode.SetInst (e.GetText());
	    NotifyViewers();
	}
    }