import java.awt.event.*;
import javax.swing.*;

public class FenetreListener extends WindowAdapter {

	private boolean estActive;

	public FenetreListener() {
		this.estActive = true;
	}

	public boolean getEstActive() {
		return this.estActive;
	}


	@Override
	public void windowActivated(WindowEvent e) {
		this.estActive = true;
	}

	@Override
	public void windowDeactivated(WindowEvent e) {
		this.estActive = false;
	}


}