List of usage examples for javax.swing JFileChooser APPROVE_BUTTON_MNEMONIC_CHANGED_PROPERTY
String APPROVE_BUTTON_MNEMONIC_CHANGED_PROPERTY
To view the source code for javax.swing JFileChooser APPROVE_BUTTON_MNEMONIC_CHANGED_PROPERTY.
Click Source Link
From source file:Main.java
public static void main(String[] argv) throws Exception { final JFileChooser chooser = new JFileChooser(); chooser.addPropertyChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { if (JFileChooser.APPROVE_BUTTON_MNEMONIC_CHANGED_PROPERTY.equals(evt.getPropertyName())) { JFileChooser chooser = (JFileChooser) evt.getSource(); File oldDir = (File) evt.getOldValue(); File newDir = (File) evt.getNewValue(); File curDir = chooser.getCurrentDirectory(); }/*w w w. j a v a 2s . c o m*/ } }); }