private Log log;
private MenuItem export;
@Override
protected void setup() {
MenuBar mb = new MenuBar();
file = mb.addItem("File", null);
file.addItem("Open", this);
file.addItem("Save", this);
file.addItem("Save As..", this);
file.addSeparator();
export = file.addItem("Export..", null);
export.addItem("As PDF...", this);
file.addSeparator();
file.addItem("Exit", this);
edit = mb.addItem("Edit", null);
edit.addItem("Copy", this);
edit.addItem("Cut", this);
edit.addItem("Paste", this);
mb.addItem("Help", this);
addComponent(mb);
log = new Log(5);
addComponent(log);