public void propertyChange(PropertyChangeEvent e) {
   String prop = e.getPropertyName();
   if (prop == JFileChooser.CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY) {
     filters = (FileFilter[]) e.getNewValue();
     fireContentsChanged(this, -1, -1);
   } else if (prop == JFileChooser.FILE_FILTER_CHANGED_PROPERTY) {
     fireContentsChanged(this, -1, -1);
   }
 }
Ejemplo n.º 2
0
 @Override
 public void propertyChange(PropertyChangeEvent evt) {
   String strPropertyName = evt.getPropertyName();
   if ("progress".equals(strPropertyName)) {
     progressBar.setIndeterminate(false);
     int progress = (Integer) evt.getNewValue();
     progressBar.setValue(progress);
   }
 }
Ejemplo n.º 3
0
 public void propertyChange(PropertyChangeEvent e) {
   String strProp = e.getPropertyName();
   if (strProp == null) return;
   strProp = strProp.toLowerCase();
   if (strProp.indexOf("heading3") >= 0 || strProp.indexOf("plaintext") >= 0) setPref();
 }