Java Code Examples for javax.swing.JFileChooser.CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY

The following are Jave code examples for showing how to use CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY of the javax.swing.JFileChooser class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: rapidminer   File: FileChooserUI.java   Source Code and License Vote up 5 votes
@Override
public void propertyChange(PropertyChangeEvent e) {
	String prop = e.getPropertyName();
	if (prop == JFileChooser.CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY) {
		this.filters = (FileFilter[]) e.getNewValue();
		fireContentsChanged(this, -1, -1);
	} else if (prop == JFileChooser.FILE_FILTER_CHANGED_PROPERTY) {
		fireContentsChanged(this, -1, -1);
	}
}