public ScenarioLoader(File f) { scenarioFile = f; try { camos = new DirectoryItems(Configuration.camoDir(), "", ImageFileFactory.getInstance()); //$NON-NLS-1$ } catch (Exception e) { camos = null; } }
/** * Get the Singleton <code>ImageFileFactory</code>. * * @return the Singleton <code>ImageFileFactory</code>. */ public static ImageFileFactory getInstance() { if (null == singleton) singleton = new ImageFileFactory(); return singleton; }
/** * This constructor have to be called only from addNotify() method */ public PilotMapSet(JComponent c) { comp = c; try { portraits = new DirectoryItems(Configuration.portraitImagesDir(), "", //$NON-NLS-1$ ImageFileFactory.getInstance()); } catch (Exception e) { portraits = null; } setAreas(); setBackGround(); }
ImageFileFactory.getInstance()); } catch (Exception e) { camos = null;
Configuration.portraitImagesDir(), "", //$NON-NLS-1$ ImageFileFactory.getInstance() ); } catch (Exception e) {
try { camos = new DirectoryItems(new File("data/images/camo"), "", //$NON-NLS-1$ //$NON-NLS-2$ ImageFileFactory.getInstance()); } catch (Exception e) { camos = null;
ImageFileFactory.getInstance()); } catch (Exception e) { portraits = null;
Configuration.camoDir(), "", //$NON-NLS-1$ ImageFileFactory.getInstance() ); } catch (Exception e) {