Browse Source

Fixed bug where currently selected files were not showing up in the displayed

diallog.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268518 13f79535-47bb-0310-9956-ffa450edef68
master
metasim 24 years ago
parent
commit
18184c33cf
1 changed files with 4 additions and 7 deletions
  1. +4
    -7
      src/antidote/org/apache/tools/ant/gui/customizer/FilePropertyEditor.java

+ 4
- 7
src/antidote/org/apache/tools/ant/gui/customizer/FilePropertyEditor.java View File

@@ -83,7 +83,6 @@ public class FilePropertyEditor extends AbstractPropertyEditor {
*/
public FilePropertyEditor() {
_container = new JPanel(new BorderLayout());

_widget = new JTextField();

@@ -192,12 +191,10 @@ public class FilePropertyEditor extends AbstractPropertyEditor {
private class ActionHandler implements ActionListener {
public void actionPerformed(ActionEvent e) {
JFileChooser chooser = null;
if(_widget.getText().length() > 0) {
chooser = new JFileChooser(_widget.getText());
}
else {
chooser = new JFileChooser();
}
chooser = new JFileChooser();
chooser.setSelectedFile((File) getValue());


_filter = (_filter == null ?
chooser.getAcceptAllFileFilter() : _filter);
chooser.setFileFilter(_filter);


Loading…
Cancel
Save