Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
after selecting file from the chooser, focus the text field
Browse files Browse the repository at this point in the history
this will force re-validation of the field, updating the diplayed
message if necessary.
  • Loading branch information
ervandew committed Jun 14, 2010
1 parent d553a0e commit d3c6e65
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Formic installer framework.
* Copyright (C) 2005 - 2008 Eric Van Dewoestine
* Copyright (C) 2005 - 2010 Eric Van Dewoestine
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -105,6 +105,7 @@ public void actionPerformed(ActionEvent event){
int result = chooser.showOpenDialog(getParent());
if(result == JFileChooser.APPROVE_OPTION){
textField.setText(chooser.getSelectedFile().getPath());
textField.requestFocus();
}
}
});
Expand Down

0 comments on commit d3c6e65

Please sign in to comment.