diff --git a/src/ui/avatarsmd/AvatarSMDTransitionInfo.java b/src/ui/avatarsmd/AvatarSMDTransitionInfo.java index 1d1358047380b0b3cfa70e0be6e052db5b0e71b6..189f8a5259d7eec1245017b2b2c757a6be126065 100755 --- a/src/ui/avatarsmd/AvatarSMDTransitionInfo.java +++ b/src/ui/avatarsmd/AvatarSMDTransitionInfo.java @@ -232,7 +232,7 @@ public class AvatarSMDTransitionInfo extends TGCWithoutInternalComponent { Vector attributes = tdp.getMGUI().getAllAttributes(); Vector methods = tdp.getMGUI().getAllMethods(); JDialogAvatarTransition jdat = new JDialogAvatarTransition(frame, "Setting transition parameters", guard, afterMin, afterMax, computeMin, computeMax, listOfActions, attributes, methods, filesToInclude, codeToInclude); - jdat.setSize(700, 500); + jdat.setSize(500, 600); GraphicLib.centerOnParent(jdat); jdat.show(); // blocked until dialog has been closed diff --git a/src/ui/window/JDialogAvatarTransition.java b/src/ui/window/JDialogAvatarTransition.java index 0027273953261fba774d181d47dab3b16a16e702..63617dbd81c0e007c73bd6ace15e229c19eb86cc 100755 --- a/src/ui/window/JDialogAvatarTransition.java +++ b/src/ui/window/JDialogAvatarTransition.java @@ -244,8 +244,10 @@ public class JDialogAvatarTransition extends javax.swing.JDialog implements Acti jtaFiles.setMargin(new Insets(10, 10, 10, 10)); jtaFiles.setTabSize(3); String files = ""; - for(i=0; i<filesToInclude.length; i++) { - files += filesToInclude[i] + "\n"; + if (filesToInclude != null) { + for(i=0; i<filesToInclude.length; i++) { + files += filesToInclude[i] + "\n"; + } } jtaFiles.append(files); jtaFiles.setFont(new Font("times", Font.PLAIN, 12)); @@ -258,8 +260,10 @@ public class JDialogAvatarTransition extends javax.swing.JDialog implements Acti jtaCode.setMargin(new Insets(10, 10, 10, 10)); jtaCode.setTabSize(3); String code = ""; - for(i=0; i<codeToInclude.length; i++) { - code += codeToInclude[i] + "\n"; + if (codeToInclude != null) { + for(i=0; i<codeToInclude.length; i++) { + code += codeToInclude[i] + "\n"; + } } jtaCode.append(code); jtaCode.setFont(new Font("times", Font.PLAIN, 12));