com.github.croesch.micro_debug.gui.actions
Class BrowsePathForTextFieldAction
java.lang.Object
javax.swing.AbstractAction
com.github.croesch.micro_debug.gui.actions.BrowsePathForTextFieldAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
public final class BrowsePathForTextFieldAction
- extends AbstractAction
AbstractAction that opens a file chooser when performed and passes the result to a text component.
- Since:
- Date: Mar 9, 2012
- Author:
- croesch
- See Also:
- Serialized Form
| Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
|
Method Summary |
void |
actionPerformed(ActionEvent e)
Opens a file chooser to browse the file and sets the result to the text component. |
BrowsePathForTextFieldAction
public BrowsePathForTextFieldAction(JTextComponent comp,
Component p)
- Constructs this
AbstractAction that opens a file chooser when performed and passes the result to a text
component.
- Parameters:
comp - the text component that'll received the fetched information from the file chooserp - the parent component for adjusting the file chooser, may be null- Since:
- Date: Mar 9, 2012
actionPerformed
public void actionPerformed(ActionEvent e)
- Opens a file chooser to browse the file and sets the result to the text component.
- Parameters:
e - the event that caused this action to be performed- Since:
- Date: Mar 9, 2012
Copyright © 2012. All Rights Reserved.