Author: remi
Date: 2008-09-18 15:14:30 +0200 (Thu, 18 Sep 2008)
New Revision: 1904

Modified:
   software_suite_v2/software/tools/attitunesStudio/trunk/src/main.java
Log:
* Skinning work now on linux (without the frame borders)

Modified: software_suite_v2/software/tools/attitunesStudio/trunk/src/main.java
===================================================================
--- software_suite_v2/software/tools/attitunesStudio/trunk/src/main.java        
2008-09-18 12:44:35 UTC (rev 1903)
+++ software_suite_v2/software/tools/attitunesStudio/trunk/src/main.java        
2008-09-18 13:14:30 UTC (rev 1904)
@@ -35,27 +35,38 @@
 {
        public static void main(String[] args)
        {
+               String themepack;
+               
                // Skinlf Begin
                try
                {
-                       String themepack = 
"C:\\tuxdroid\\resources\\skin\\tuxthemepack.zip";
-                       
SkinLookAndFeel.setSkin(SkinLookAndFeel.loadThemePack(themepack));
-                       
UIManager.setLookAndFeel("com.l2fprod.gui.plaf.skin.SkinLookAndFeel");
-                       
-                   if (OS.isOneDotFourOrMore())
-                   {
-                     java.lang.reflect.Method method =
-                       JFrame.class.getMethod(
-                         "setDefaultLookAndFeelDecorated",
-                         new Class[] { boolean.class });
-                     method.invoke(null, new Object[] { Boolean.TRUE });
-                     
-                     method =
-                       JDialog.class.getMethod(
-                         "setDefaultLookAndFeelDecorated",
-                         new Class[] { boolean.class });
-                     method.invoke(null, new Object[] { Boolean.TRUE });
-                   }
+                       if (System.getProperty("os.name").contains("Windows"))
+                       {
+                               themepack = 
"C:\\tuxdroid\\resources\\skin\\tuxthemepack.zip";
+                               
SkinLookAndFeel.setSkin(SkinLookAndFeel.loadThemePack(themepack));
+                               UIManager.setLookAndFeel(new SkinLookAndFeel());
+                               
+                               if (OS.isOneDotFourOrMore())
+                           {
+                             java.lang.reflect.Method method =
+                               JFrame.class.getMethod(
+                                 "setDefaultLookAndFeelDecorated",
+                                 new Class[] { boolean.class });
+                             method.invoke(null, new Object[] { Boolean.TRUE 
});
+                             
+                             method =
+                               JDialog.class.getMethod(
+                                 "setDefaultLookAndFeelDecorated",
+                                 new Class[] { boolean.class });
+                             method.invoke(null, new Object[] { Boolean.TRUE 
});
+                           }
+                       }
+                       else
+                       {
+                               themepack = "./tuxthemepack.zip";
+                               
SkinLookAndFeel.setSkin(SkinLookAndFeel.loadThemePack(themepack));
+                               UIManager.setLookAndFeel(new SkinLookAndFeel());
+                       }
                }
                catch (Exception e) {}
                // Skinlf end


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to