IDEA-146962 Use word-wrap for Description text in the Registry
authorYann Cébron <yann.cebron@jetbrains.com>
Wed, 28 Oct 2015 09:27:04 +0000 (10:27 +0100)
committerYann Cébron <yann.cebron@jetbrains.com>
Wed, 28 Oct 2015 09:27:04 +0000 (10:27 +0100)
platform/lang-impl/src/com/intellij/openapi/util/registry/RegistryUi.java

index 57c1529d537e8d62ecf91d9ee6a364b1900318bb..b66f721e747d93829401b050fc5e480d83950baf 100644 (file)
@@ -92,6 +92,8 @@ public class RegistryUi implements Disposable {
     myTable.setStriped(true);
 
     myDescriptionLabel = new JTextArea(3, 50);
+    myDescriptionLabel.setWrapStyleWord(true);
+    myDescriptionLabel.setLineWrap(true);
     myDescriptionLabel.setEditable(false);
     final JScrollPane label = ScrollPaneFactory.createScrollPane(myDescriptionLabel);
     final JPanel descriptionPanel = new JPanel(new BorderLayout());