[izpack-changes] izpack-src/src/lib/com/izforge/izpack/installer GUIInstaller.java,1.35.2.2,1.35.2.3
jponge
nobody at sheep.berlios.de
Thu Feb 2 16:56:00 CET 2006
Update of /cvsroot/izpack//izpack-src/src/lib/com/izforge/izpack/installer
In directory sheep:/tmp/cvs-serv22927/src/lib/com/izforge/izpack/installer
Modified Files:
Tag: branch-3-8
GUIInstaller.java
Log Message:
Swing threading fixes. IzPack looks faster like that!
Index: GUIInstaller.java
===================================================================
RCS file: /cvsroot/izpack//izpack-src/src/lib/com/izforge/izpack/installer/GUIInstaller.java,v
retrieving revision 1.35.2.2
retrieving revision 1.35.2.3
diff -u -d -r1.35.2.2 -r1.35.2.3
--- GUIInstaller.java 3 Jan 2006 13:54:02 -0000 1.35.2.2
+++ GUIInstaller.java 2 Feb 2006 15:55:58 -0000 1.35.2.3
@@ -56,6 +56,7 @@
import javax.swing.ListCellRenderer;
import javax.swing.LookAndFeel;
import javax.swing.SwingConstants;
+import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.plaf.metal.MetalLookAndFeel;
import javax.swing.plaf.metal.MetalTheme;
@@ -116,7 +117,19 @@
checkJavaVersion();
// Loads the suitable langpack
- loadLangPack();
+ SwingUtilities.invokeAndWait(new Runnable() {
+ public void run()
+ {
+ try
+ {
+ loadLangPack();
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+ });
// create the resource manager (after the language selection!)
ResourceManager.create(this.installdata);
@@ -125,7 +138,19 @@
addCustomLangpack(installdata);
// We launch the installer GUI
- loadGUI();
+ SwingUtilities.invokeLater(new Runnable() {
+ public void run()
+ {
+ try
+ {
+ loadGUI();
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+ });
}
/**
More information about the izpack-changes
mailing list