JButton bouton=new JButton("create");
bouton.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent arg0) {
// TODO Auto-generated method stub
TriggerBean trigger=(TriggerBean) monPanel.buildMapElement(new Point(15,15));
System.out.println("trigger class="+trigger.getClass().getCanonicalName());
System.out.println("shape class="+trigger.getAreaOfActivation().getClass().getCanonicalName());
System.out.println("effect class="+trigger.getEffect().getClass().getCanonicalName());
System.out.println("Activators class="+trigger.getTypeOfActivator().getCanonicalName());
}
});
test.add(bouton);
monPanel.setVisible(true);