package conteggi;

import conteggi.*;
import java.awt.*;

public class CounterWithDisplay extends Counter{
	private CounterFrame fr;
	private Object thecreator;

	public CounterWithDisplay(String nome, Object oggetto_creatore_del_cwd){
		super(nome);
		thecreator=oggetto_creatore_del_cwd;
		fr=new CounterFrame("Counter "+nome, this);
		CounterFrameListener cfl=new CounterFrameListener(this);
		fr.addWindowListener(cfl);
		fr.show();
	}

/*
	public void inc(){super.inc();fr.repaint();}
*/

	public CounterFrame getFrame(){return fr;}

	public Object getTheCreator(){return thecreator;}
}	
