edit.addItem("Copy", command);
edit.addItem("Paste", command);
editItem.setEnabled(false); // Disable after adding children so they get disabled too
view.addItem("Date", true, command, MenuItem.Type.CHECK, false);
view.addItem("Time", true, command, MenuItem.Type.CHECK, true);
view.addSeparator();
view.addItem("Radio 1", true, command, MenuItem.Type.RADIO, false);
view.addItem("Radio 2", true, command, MenuItem.Type.RADIO, true);
view.addSeparator();
view.addItem("Radio 3", command, MenuItem.Type.RADIO, false, 1);
view.addItem("Radio 4", command, MenuItem.Type.RADIO, true, 1);