1 21 22 25 package net.sf.launch4j.formimpl; 26 27 import javax.swing.JFileChooser ; 28 29 import net.sf.launch4j.FileChooserFilter; 30 import net.sf.launch4j.binding.Bindings; 31 import net.sf.launch4j.config.Splash; 32 import net.sf.launch4j.form.SplashForm; 33 34 37 public class SplashFormImpl extends SplashForm { 38 39 public SplashFormImpl(Bindings bindings, JFileChooser fc) { 40 bindings.addOptComponent("splash", Splash.class, _splashCheck) 41 .add("splash.file", _splashFileField) 42 .add("splash.waitForWindow", _waitForWindowCheck, true) 43 .add("splash.timeout", _timeoutField, "60") 44 .add("splash.timeoutErr", _timeoutErrCheck, true); 45 46 _splashFileButton.addActionListener(new BrowseActionListener(false, fc, 47 new FileChooserFilter("Bitmap files (.bmp)", ".bmp"), _splashFileField)); 48 } 49 } 50 | Popular Tags |