@Override
	public void actionPerformed(ActionEvent e) {

		JCheckBox source = (JCheckBox) e.getSource();
		boolean state = source.isSelected();

		if (state) {
			this.setTitle("JCheckbox example");
		} else {
			this.setTitle("");
		}
	}