Multiple buttons instance - different click listener action

Hi,

I got problem with displaying multiple panels which contain for example a label and a button.
Code looks something like this:

for(int i=0; i:love:;i++){
 Panel p = new Panel("panel "+i);
 Label l = new Label("label "+ i);
 p.addComponent(l);
 Button show = new Button("Show Label in subWindow", new Button.ClickListener() {
				public void buttonClick(ClickEvent event) {
					Window sub = new Window("testing "+label);
					getMainWindow().addWindow(sub);
				}
	});
}