Examples of DrawSWFConfig


Examples of at.bestsolution.drawswf.util.DrawSWFConfig

    }
   
    // ------------------------------------------------------------------
    private void setI18n()
    {
        DrawSWFConfig config = DrawSWFConfig.getInstance();
       
        if( config.getProperty("pluginpath") == null )
        {
            String path = System.getProperty("user.home")+ File.separator + ".drawswf"+File.separator+"plugin";
            config.setProperty("pluginpath", path);
           
            try
            {
                File dir = new File(path);
               
                if( ! dir.exists() )
                {
                    dir.mkdirs();
                }
               
                config.save();
            }
            catch( FileNotFoundException e )
            {
                e.printStackTrace();
            }
            catch(IOException e)
            {
                e.printStackTrace();
            }
           
        }
        
        Locale locale = new Locale(config.getProperty("language") );
       
        international_ = ResourceBundle.getBundle("DrawSWFBundle", locale );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.