PY-11071 File contains non-ASCII character: layout for inspection settings has invali...
authorEkaterina Tuzova <Ekaterina.Tuzova@jetbrains.com>
Wed, 16 Oct 2013 11:31:06 +0000 (13:31 +0200)
committerEkaterina Tuzova <Ekaterina.Tuzova@jetbrains.com>
Wed, 16 Oct 2013 11:31:06 +0000 (13:31 +0200)
python/src/com/jetbrains/python/inspections/PyEncodingUtil.java

index fd4ba1871d78cdc54819bdd233a017e639d52458..d3e744e9583df837aad86e6f25e75352f66ed8e8 100644 (file)
@@ -27,27 +27,29 @@ public class PyEncodingUtil {
     final JPanel optionsPanel = new JPanel(new GridBagLayout());
     GridBagConstraints c = new GridBagConstraints();
 
-    c.anchor = GridBagConstraints.NORTH;
     c.fill = GridBagConstraints.HORIZONTAL;
+    c.anchor = GridBagConstraints.NORTH;
     c.gridx = 0;
     c.gridy = 0;
-    c.weightx = 1;
-    optionsPanel.add(new JLabel("Select default encoding: "), c);
-    
+    final JLabel encodingLabel = new JLabel("Select default encoding: ");
+    final JPanel encodingPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
+    encodingPanel.add(encodingLabel);
+    optionsPanel.add(encodingPanel, c);
+
     c.gridx = 1;
     c.gridy = 0;
-    c.weightx = 1;
     optionsPanel.add(defaultEncoding, c);
 
     c.gridx = 0;
     c.gridy = 1;
-    c.weightx = 1;
     c.weighty = 1;
-    optionsPanel.add(new JLabel("Encoding comment format:"), c);
-    
+    final JLabel formatLabel = new JLabel("Encoding comment format:");
+    final JPanel formatPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
+    formatPanel.add(formatLabel);
+    optionsPanel.add(formatPanel, c);
+
     c.gridx = 1;
     c.gridy = 1;
-    c.weightx = 1;
     optionsPanel.add(encodingFormat, c);
 
     return optionsPanel;