From 4e9d81151483224a1efbe0bad3a9b795e742f95f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Mon, 15 Jan 2018 20:20:41 +0100 Subject: [PATCH] formatting --- .../decompiler/flash/gui/TagInfoPanel.java | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/src/com/jpexs/decompiler/flash/gui/TagInfoPanel.java b/src/com/jpexs/decompiler/flash/gui/TagInfoPanel.java index c9344709e..9dacb8cab 100644 --- a/src/com/jpexs/decompiler/flash/gui/TagInfoPanel.java +++ b/src/com/jpexs/decompiler/flash/gui/TagInfoPanel.java @@ -106,7 +106,7 @@ public class TagInfoPanel extends JPanel { result += ""; result += ""; - for(TagInfo.TagInfoItem item : items) { + for (TagInfo.TagInfoItem item : items) { Boolean convertToCharacterList; flipFlop = !flipFlop; @@ -132,19 +132,19 @@ public class TagInfoPanel extends JPanel { if (value instanceof Boolean) { boolean boolValue = (boolean) value; value = boolValue ? AppStrings.translate("yes") : AppStrings.translate("no"); - } else if(convertToCharacterList) { + } else if (convertToCharacterList) { String strValue = (String) value; String[] strIds = strValue.split(", "); List sortedIds = new ArrayList(); strValue = ""; - for(String strId : strIds) { + for (String strId : strIds) { sortedIds.add(Integer.parseInt(strId)); } Collections.sort(sortedIds); - for(int id : sortedIds) { + for (int id : sortedIds) { strValue += "" + id + ", "; } @@ -162,18 +162,17 @@ public class TagInfoPanel extends JPanel { Font font = UIManager.getFont("Label.font"); String bodyRule = "body { font-family: " + font.getFamily() + ";" - + " font-size: " + font.getSize() + "pt;" - + "}" - + " table {" - + " width:100%;" - + " color:#053E6A;" - + " padding:1px;" - + "}" - + "td { border: 1px solid #e4e4e4; }" - + "html { border: 1px solid #789AC4; }" - ; + + " font-size: " + font.getSize() + "pt;" + + "}" + + " table {" + + " width:100%;" + + " color:#053E6A;" + + " padding:1px;" + + "}" + + "td { border: 1px solid #e4e4e4; }" + + "html { border: 1px solid #789AC4; }"; - ((HTMLDocument)editorPane.getDocument()).getStyleSheet().addRule(bodyRule); + ((HTMLDocument) editorPane.getDocument()).getStyleSheet().addRule(bodyRule); editorPane.setOpaque(false); editorPane.setBorder(null);