Author: jerome
Date: 2009-02-06 17:22:22 +0100 (Fri, 06 Feb 2009)
New Revision: 3587

Modified:
   
software_suite_v2/software/tools/control_center_presentation/trunk/control_center_presentation/src/Presentation.java
   
software_suite_v2/software/tools/control_center_presentation/trunk/control_center_presentation/src/ccp_main.java
Log:
* Fixed a bug with languages.

Modified: 
software_suite_v2/software/tools/control_center_presentation/trunk/control_center_presentation/src/Presentation.java
===================================================================
--- 
software_suite_v2/software/tools/control_center_presentation/trunk/control_center_presentation/src/Presentation.java
        2009-02-06 15:39:32 UTC (rev 3586)
+++ 
software_suite_v2/software/tools/control_center_presentation/trunk/control_center_presentation/src/Presentation.java
        2009-02-06 16:22:22 UTC (rev 3587)
@@ -43,7 +43,7 @@
        public Presentation(){
                //Create interface.
                setLayout(null);
-               setSize(new Dimension(430, 460));
+               setSize(new Dimension(430, 470));
                setPreferredSize(getSize());
                setOpaque(true);
        }

Modified: 
software_suite_v2/software/tools/control_center_presentation/trunk/control_center_presentation/src/ccp_main.java
===================================================================
--- 
software_suite_v2/software/tools/control_center_presentation/trunk/control_center_presentation/src/ccp_main.java
    2009-02-06 15:39:32 UTC (rev 3586)
+++ 
software_suite_v2/software/tools/control_center_presentation/trunk/control_center_presentation/src/ccp_main.java
    2009-02-06 16:22:22 UTC (rev 3587)
@@ -51,11 +51,16 @@
        
        private String lang, country;
        
-       public ccp_main(String lang, String country)
+       public ccp_main()
        {
                
-               this.lang = lang;
-               this.country = country;
+               this.lang = System.getProperty("tgp_lang");
+               this.country = System.getProperty("tgp_country");
+               if((lang == null) || (country == null))
+               {
+                       this.lang = "en";
+                       this.country = "US";
+               }
                
                // On windows
                if (System.getProperty("os.name").contains("Windows"))
@@ -99,7 +104,7 @@
                FontSet.setAllFonts();
                frame = new JFrame("Tux Droid Control Center");
                
-               frame.setSize(new Dimension(430, 460));
+               frame.setSize(new Dimension(430, 470));
                frame.setPreferredSize(frame.getSize());
                
                frame.setLocationRelativeTo(frame.getParent());
@@ -133,7 +138,7 @@
                atStartup.setText(properties.getStartupText());
                atStartup.setSize(400, 20);
                atStartup.setPreferredSize(atStartup.getSize());
-               atStartup.setLocation(10, 400);
+               atStartup.setLocation(10, 410);
                atStartup.setOpaque(true);
                atStartup.setBorderPainted(false);
                atStartup.setFocusable(false);
@@ -237,6 +242,6 @@
         */
        public static void main(String[] args)
        {
-               new ccp_main("nl", "NL");
+               new ccp_main();
        }
 }


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to