net.sf.launch4j.config.ClassPath Java Examples

The following examples show how to use net.sf.launch4j.config.ClassPath. 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: ClassPathFormImpl.java    From beast-mcmc with GNU Lesser General Public License v2.1 6 votes vote down vote up
public ClassPathFormImpl(Bindings bindings, JFileChooser fc) {
	bindings.addOptComponent("classPath", ClassPath.class, _classpathCheck)
			.add("classPath.mainClass", _mainclassField)
			.add("classPath.paths", _classpathList);
	_fileChooser = fc;

	ClasspathCheckListener cpl = new ClasspathCheckListener();
	_classpathCheck.addChangeListener(cpl);
	cpl.stateChanged(null);

	_classpathList.setModel(new DefaultListModel());
	_classpathList.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
	_classpathList.addListSelectionListener(new ClasspathSelectionListener());

	_newClasspathButton.addActionListener(new NewClasspathListener());
	_acceptClasspathButton.addActionListener(
			new AcceptClasspathListener(_classpathField));
	_removeClasspathButton.addActionListener(new RemoveClasspathListener());
	_importClasspathButton.addActionListener(new ImportClasspathListener());
	_classpathUpButton.addActionListener(new MoveUpListener());
	_classpathDownButton.addActionListener(new MoveDownListener());
}
 
Example #2
Source File: ClassPathFormImpl.java    From PyramidShader with GNU General Public License v3.0 6 votes vote down vote up
public ClassPathFormImpl(Bindings bindings, JFileChooser fc) {
	bindings.addOptComponent("classPath", ClassPath.class, _classpathCheck)
			.add("classPath.mainClass", _mainclassField)
			.add("classPath.paths", _classpathList);
	_fileChooser = fc;

	ClasspathCheckListener cpl = new ClasspathCheckListener();
	_classpathCheck.addChangeListener(cpl);
	cpl.stateChanged(null);

	_classpathList.setModel(new DefaultListModel());
	_classpathList.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
	_classpathList.addListSelectionListener(new ClasspathSelectionListener());

	_newClasspathButton.addActionListener(new NewClasspathListener());
	_acceptClasspathButton.addActionListener(
			new AcceptClasspathListener(_classpathField));
	_removeClasspathButton.addActionListener(new RemoveClasspathListener());
	_importClasspathButton.addActionListener(new ImportClasspathListener());
	_classpathUpButton.addActionListener(new MoveUpListener());
	_classpathDownButton.addActionListener(new MoveDownListener());
}
 
Example #3
Source File: ClassPathFormImpl.java    From jmkvpropedit with BSD 2-Clause "Simplified" License 6 votes vote down vote up
public ClassPathFormImpl(Bindings bindings, JFileChooser fc) {
	bindings.addOptComponent("classPath", ClassPath.class, _classpathCheck)
			.add("classPath.mainClass", _mainclassField)
			.add("classPath.paths", _classpathList);
	_fileChooser = fc;

	ClasspathCheckListener cpl = new ClasspathCheckListener();
	_classpathCheck.addChangeListener(cpl);
	cpl.stateChanged(null);

	_classpathList.setModel(new DefaultListModel());
	_classpathList.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
	_classpathList.addListSelectionListener(new ClasspathSelectionListener());

	_newClasspathButton.addActionListener(new NewClasspathListener());
	_acceptClasspathButton.addActionListener(
			new AcceptClasspathListener(_classpathField));
	_removeClasspathButton.addActionListener(new RemoveClasspathListener());
	_importClasspathButton.addActionListener(new ImportClasspathListener());
	_classpathUpButton.addActionListener(new MoveUpListener());
	_classpathDownButton.addActionListener(new MoveDownListener());
}