Exemplo n.º 1
0
 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);
   }
 }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
 public void itemSelected(Item i) {
   info.setSelectedItem(i);
 }