array definitions was inconsistent, now everywhere "Type[] variableName", using StringBuilder => little bit faster, test fixed (missing parameters)

This commit is contained in:
Honfika
2013-09-09 11:46:04 +02:00
parent 591e47b964
commit d571b899c6
155 changed files with 424 additions and 406 deletions
@@ -20,7 +20,7 @@ import javax.swing.JPanel;
public class ExportDialog extends AppDialog {
boolean cancelled = false;
String options[][] = {
String[][] options = {
{translate("shapes.svg")},
{translate("texts.plain"), translate("texts.formatted")},
{translate("images.pngjpeg")},
@@ -28,7 +28,7 @@ public class ExportDialog extends AppDialog {
{translate("sounds.mp3wavflv"), translate("sounds.flv")},
{translate("actionscript.as"), translate("actionscript.pcode")}
};
String optionNames[] = {
String[] optionNames = {
translate("shapes"),
translate("texts"),
translate("images"),
@@ -42,7 +42,7 @@ public class ExportDialog extends AppDialog {
public static final int OPTION_MOVIES = 3;
public static final int OPTION_SOUNDS = 4;
public static final int OPTION_ACTIONSCRIPT = 5;
private JComboBox combos[];
private JComboBox[] combos;
public int getOption(int index) {
return combos[index].getSelectedIndex();
@@ -61,7 +61,7 @@ public class ExportDialog extends AppDialog {
cnt.setLayout(new BorderLayout());
JPanel comboPanel = new JPanel(null);
combos = new JComboBox[optionNames.length];
JLabel labels[] = new JLabel[optionNames.length];
JLabel[] labels = new JLabel[optionNames.length];
int labWidth = 0;
for (int i = 0; i < optionNames.length; i++) {
labels[i] = new JLabel(optionNames[i]);