Code example for Observable

Methods: notifyObservers

0
		else { 
			okCancel = fc.showOpenDialog(null);
		} 
		if (okCancel == JFileChooser.APPROVE_OPTION) {
			file = fc.getSelectedFile();
			observable.notifyObservers(this);
		} 
	} 
 
	/** A serial version UID. */ 
	private static final long serialVersionUID = 2225830878098387118L;
 
}