public void actionPerformed(ActionEvent e) {
   int i = pane.indexOfTabComponent(ButtonTabComponent.this);
   if (i != -1) {
     // geaendert vom Orginal
     // pane.remove(i);
     // ((InfoPane)pane).removeEntity(pane.getTitleAt(i));
     ((InfoPane) pane).removeEntry(i);
   }
 }
Beispiel #2
0
 public BBSimulator(String title) throws HeadlessException {
   super(title);
   world = new World(this);
   info = new InfoPane();
   worldPane.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));
   worldPane.add(world);
   infoPane.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));
   infoPane.add(info.getContentPane());
   contentPane.setOpaque(true); // content panes must be opaque
   setContentPane(contentPane);
 }
Beispiel #3
0
 public void itemSelected(Item i) {
   info.setSelectedItem(i);
 }