Skip to content
Snippets Groups Projects
Commit 3faf3290 authored by Ludovic Apvrille's avatar Ludovic Apvrille
Browse files

AVATAR design: changing edition of transitions

parent 48bd4d43
No related branches found
No related tags found
No related merge requests found
...@@ -232,7 +232,7 @@ public class AvatarSMDTransitionInfo extends TGCWithoutInternalComponent { ...@@ -232,7 +232,7 @@ public class AvatarSMDTransitionInfo extends TGCWithoutInternalComponent {
Vector attributes = tdp.getMGUI().getAllAttributes(); Vector attributes = tdp.getMGUI().getAllAttributes();
Vector methods = tdp.getMGUI().getAllMethods(); Vector methods = tdp.getMGUI().getAllMethods();
JDialogAvatarTransition jdat = new JDialogAvatarTransition(frame, "Setting transition parameters", guard, afterMin, afterMax, computeMin, computeMax, listOfActions, attributes, methods, filesToInclude, codeToInclude); 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); GraphicLib.centerOnParent(jdat);
jdat.show(); // blocked until dialog has been closed jdat.show(); // blocked until dialog has been closed
......
...@@ -244,8 +244,10 @@ public class JDialogAvatarTransition extends javax.swing.JDialog implements Acti ...@@ -244,8 +244,10 @@ public class JDialogAvatarTransition extends javax.swing.JDialog implements Acti
jtaFiles.setMargin(new Insets(10, 10, 10, 10)); jtaFiles.setMargin(new Insets(10, 10, 10, 10));
jtaFiles.setTabSize(3); jtaFiles.setTabSize(3);
String files = ""; String files = "";
for(i=0; i<filesToInclude.length; i++) { if (filesToInclude != null) {
files += filesToInclude[i] + "\n"; for(i=0; i<filesToInclude.length; i++) {
files += filesToInclude[i] + "\n";
}
} }
jtaFiles.append(files); jtaFiles.append(files);
jtaFiles.setFont(new Font("times", Font.PLAIN, 12)); jtaFiles.setFont(new Font("times", Font.PLAIN, 12));
...@@ -258,8 +260,10 @@ public class JDialogAvatarTransition extends javax.swing.JDialog implements Acti ...@@ -258,8 +260,10 @@ public class JDialogAvatarTransition extends javax.swing.JDialog implements Acti
jtaCode.setMargin(new Insets(10, 10, 10, 10)); jtaCode.setMargin(new Insets(10, 10, 10, 10));
jtaCode.setTabSize(3); jtaCode.setTabSize(3);
String code = ""; String code = "";
for(i=0; i<codeToInclude.length; i++) { if (codeToInclude != null) {
code += codeToInclude[i] + "\n"; for(i=0; i<codeToInclude.length; i++) {
code += codeToInclude[i] + "\n";
}
} }
jtaCode.append(code); jtaCode.append(code);
jtaCode.setFont(new Font("times", Font.PLAIN, 12)); jtaCode.setFont(new Font("times", Font.PLAIN, 12));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment