fix l&f adding
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 22 May 2008 19:40:13 +0000 (19:40 +0000)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 22 May 2008 19:40:13 +0000 (19:40 +0000)
git-svn-id: http://trooper/svn/projects/jSite/trunk@931 c3eda9e8-030b-0410-8277-bc7414b0a119

src/net/pterodactylus/jsite/main/Main.java

index 8f25230..329cbcf 100644 (file)
@@ -20,6 +20,7 @@
 package net.pterodactylus.jsite.main;
 
 import java.io.File;
+import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.List;
 
@@ -105,7 +106,7 @@ public class Main {
         *            The look & feels to add
         */
        private void addLookAndFeels(LookAndFeelInfo... lookAndFeelInfos) {
-               List<LookAndFeelInfo> allLookAndFeelInfos = Arrays.asList(UIManager.getInstalledLookAndFeels());
+               List<LookAndFeelInfo> allLookAndFeelInfos = new ArrayList<LookAndFeelInfo>(Arrays.asList(UIManager.getInstalledLookAndFeels()));
                for (LookAndFeelInfo lookAndFeelInfo: lookAndFeelInfos) {
                        try {
                                Class.forName(lookAndFeelInfo.getClassName());