void onSelectionChanged() {
   int i = list.list.getSelectedIndex();
   SupaplexLevel level = model.getLevel(i);
   levelOptions.setLevel(level);
   levelComponent.setLevel(level);
   model.setSelectedLevelIndex(i);
 }
 public void setModel(SupaplexModel model) {
   this.model = model;
   list.setModel(model);
   levelComponent.setModel(model);
   palette.setModel(model);
   model.addListener(new SML());
 }