本文整理汇总了Java中net.sf.launch4j.FileChooserFilter类的典型用法代码示例。如果您正苦于以下问题:Java FileChooserFilter类的具体用法?Java FileChooserFilter怎么用?Java FileChooserFilter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
FileChooserFilter类属于net.sf.launch4j包,在下文中一共展示了FileChooserFilter类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: BrowseActionListener
import net.sf.launch4j.FileChooserFilter; //导入依赖的package包/类
public BrowseActionListener(boolean save, JFileChooser fileChooser,
FileChooserFilter filter, JTextField field) {
_save = save;
_fileChooser = fileChooser;
_filter = filter;
_field = field;
}
示例2: SplashFormImpl
import net.sf.launch4j.FileChooserFilter; //导入依赖的package包/类
public SplashFormImpl(Bindings bindings, JFileChooser fc) {
bindings.addOptComponent("splash", Splash.class, _splashCheck)
.add("splash.file", _splashFileField)
.add("splash.waitForWindow", _waitForWindowCheck, true)
.add("splash.timeout", _timeoutField, "60")
.add("splash.timeoutErr", _timeoutErrCheck, true);
_splashFileButton.addActionListener(new BrowseActionListener(false, fc,
new FileChooserFilter("Bitmap files (.bmp)", ".bmp"), _splashFileField));
}
示例3: BasicFormImpl
import net.sf.launch4j.FileChooserFilter; //导入依赖的package包/类
public BasicFormImpl(Bindings bindings, JFileChooser fc) {
bindings.add("outfile", _outfileField)
.add("dontWrapJar", _dontWrapJarCheck)
.add("jar", _jarField)
.add("manifest", _manifestField)
.add("icon", _iconField)
.add("cmdLine", _cmdLineField)
.add("errTitle", _errorTitleField)
.add("downloadUrl", _downloadUrlField, Config.DOWNLOAD_URL)
.add("supportUrl", _supportUrlField)
.add("chdir", _chdirField, ".")
.add("priorityIndex", new JRadioButton[] { _normalPriorityRadio,
_idlePriorityRadio,
_highPriorityRadio })
.add("stayAlive", _stayAliveCheck)
.add("restartOnCrash", _restartOnCrashCheck);
_dontWrapJarCheck.addChangeListener(new DontWrapJarChangeListener());
_outfileButton.addActionListener(new BrowseActionListener(true, fc,
new FileChooserFilter("Windows executables (.exe)", ".exe"),
_outfileField));
_jarButton.addActionListener(new BrowseActionListener(false, fc,
new FileChooserFilter("Jar files", ".jar"), _jarField));
_manifestButton.addActionListener(new BrowseActionListener(false, fc,
new FileChooserFilter("Manifest files (.manifest)", ".manifest"),
_manifestField));
_iconButton.addActionListener(new BrowseActionListener(false, fc,
new FileChooserFilter("Icon files (.ico)", ".ico"), _iconField));
}
示例4: BasicFormImpl
import net.sf.launch4j.FileChooserFilter; //导入依赖的package包/类
public BasicFormImpl(Bindings bindings, JFileChooser fc) {
bindings.add("outfile", _outfileField)
.add("dontWrapJar", _dontWrapJarCheck)
.add("jar", _jarField)
.add("manifest", _manifestField)
.add("icon", _iconField)
.add("cmdLine", _cmdLineField)
.add("errTitle", _errorTitleField)
.add("downloadUrl", _downloadUrlField, Config.DOWNLOAD_URL)
.add("supportUrl", _supportUrlField)
.add("chdir", _chdirField, ".")
.add("priorityIndex", new JRadioButton[] { _normalPriorityRadio,
_idlePriorityRadio,
_highPriorityRadio })
.add("stayAlive", _stayAliveCheck);
_dontWrapJarCheck.addChangeListener(new DontWrapJarChangeListener());
_outfileButton.addActionListener(new BrowseActionListener(true, fc,
new FileChooserFilter("Windows executables (.exe)", ".exe"),
_outfileField));
_jarButton.addActionListener(new BrowseActionListener(false, fc,
new FileChooserFilter("Jar files", ".jar"), _jarField));
_manifestButton.addActionListener(new BrowseActionListener(false, fc,
new FileChooserFilter("Manifest files (.manifest)", ".manifest"),
_manifestField));
_iconButton.addActionListener(new BrowseActionListener(false, fc,
new FileChooserFilter("Icon files (.ico)", ".ico"), _iconField));
}
示例5: BasicFormImpl
import net.sf.launch4j.FileChooserFilter; //导入依赖的package包/类
public BasicFormImpl(Bindings bindings, JFileChooser fc) {
bindings.add("outfile", _outfileField)
.add("dontWrapJar", _dontWrapJarCheck)
.add("jar", _jarField)
.add("manifest", _manifestField)
.add("icon", _iconField)
.add("cmdLine", _cmdLineField)
.add("errTitle", _errorTitleField)
.add("downloadUrl", _downloadUrlField, Config.DOWNLOAD_URL)
.add("supportUrl", _supportUrlField)
.add("chdir", _chdirField)
.add("priorityIndex", new JRadioButton[] { _normalPriorityRadio,
_idlePriorityRadio,
_highPriorityRadio })
.add("customProcName", _customProcNameCheck)
.add("stayAlive", _stayAliveCheck);
_dontWrapJarCheck.addChangeListener(new DontWrapJarChangeListener());
_outfileButton.addActionListener(new BrowseActionListener(true, fc,
new FileChooserFilter("Windows executables (.exe)", ".exe"),
_outfileField));
_jarButton.addActionListener(new BrowseActionListener(false, fc,
new FileChooserFilter("Jar files", ".jar"), _jarField));
_manifestButton.addActionListener(new BrowseActionListener(false, fc,
new FileChooserFilter("Manifest files (.manifest)", ".manifest"),
_manifestField));
_iconButton.addActionListener(new BrowseActionListener(false, fc,
new FileChooserFilter("Icon files (.ico)", ".ico"), _iconField));
}