com.github.javacliparser.FileOption Java Examples

The following examples show how to use com.github.javacliparser.FileOption. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FileOptionEditComponent.java    From moa with GNU General Public License v3.0 5 votes vote down vote up
public FileOptionEditComponent(Option opt) {
    FileOption option = (FileOption) opt;
    this.editedOption = option;
    setLayout(new BorderLayout());
    add(this.textField, BorderLayout.CENTER);
    add(this.browseButton, BorderLayout.EAST);
    this.browseButton.addActionListener(new ActionListener() {

        @Override
        public void actionPerformed(ActionEvent arg0) {
            browseForFile();
        }
    });
    setEditState(this.editedOption.getValueAsCLIString());
}