swf header editor

This commit is contained in:
2015-04-27 16:57:36 +02:00
parent 924627f413
commit c1226d39fd
8 changed files with 218 additions and 42 deletions
@@ -18,6 +18,7 @@ package com.jpexs.decompiler.flash.gui;
import com.jpexs.decompiler.flash.SWF;
import com.jpexs.decompiler.flash.configuration.Configuration;
import com.jpexs.decompiler.flash.gui.helpers.TableLayoutHelper;
import com.jpexs.decompiler.flash.tags.Tag;
import com.jpexs.decompiler.flash.tags.base.FontTag;
import com.jpexs.decompiler.flash.tags.base.TextTag;
@@ -238,17 +239,6 @@ public class FontPanel extends JPanel {
setEditable(false);
}
private static void addTableSpaces(TableLayout tl, double size) {
int cols = tl.getNumColumn();
int rows = tl.getNumRow();
for (int x = 0; x <= cols; x++) {
tl.insertColumn(x * 2, size);
}
for (int y = 0; y <= rows; y++) {
tl.insertRow(y * 2, size);
}
}
private void initComponents() {
contentScrollPane = new JScrollPane();
@@ -489,10 +479,9 @@ public class FontPanel extends JPanel {
setLayout(new BorderLayout());
add(contentScrollPane, BorderLayout.CENTER);
addTableSpaces(tlAddCharsPanel, 10);
addTableSpaces(tlFontParamsPanel, 10);
addTableSpaces(tlAll, 10);
TableLayoutHelper.addTableSpaces(tlAddCharsPanel, 10);
TableLayoutHelper.addTableSpaces(tlFontParamsPanel, 10);
TableLayoutHelper.addTableSpaces(tlAll, 10);
}
private void fontAddCharsButtonActionPerformed(ActionEvent evt) {