Make answer placeholder text field multiline Add borders Make resizable
authorValentina Kiryushkina <valentina.kiryushkina@jetbrains.com>
Mon, 25 Jul 2016 16:16:38 +0000 (19:16 +0300)
committerValentina Kiryushkina <valentina.kiryushkina@jetbrains.com>
Mon, 25 Jul 2016 16:25:34 +0000 (19:25 +0300)
python/educational-core/course-creator/src/com/jetbrains/edu/coursecreator/ui/CCCreateAnswerPlaceholderPanel.form
python/educational-core/course-creator/src/com/jetbrains/edu/coursecreator/ui/CCCreateAnswerPlaceholderPanel.java

index 84b572cb44eab7551f2beed5e8f66ab33f6b8563..2bdb9ce10a8b2116c2ec22705cc9135bf316aa03 100644 (file)
@@ -5,7 +5,11 @@
     <constraints>
       <xy x="20" y="20" width="1379" height="302"/>
     </constraints>
-    <properties/>
+    <properties>
+      <minimumSize width="-1" height="-1"/>
+      <preferredSize width="800" height="224"/>
+      <requestFocusEnabled value="false"/>
+    </properties>
     <border type="none"/>
     <children>
       <component id="2c397" class="com.intellij.ui.components.JBLabel" binding="myHintLabel">
       <grid id="996a1" binding="myHintsPanel" layout-manager="GridLayoutManager" row-count="1" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
         <margin top="0" left="0" bottom="0" right="0"/>
         <constraints>
-          <grid row="2" column="1" row-span="1" col-span="1" vsize-policy="7" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
+          <grid row="2" column="1" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
         </constraints>
         <properties/>
         <border type="none"/>
         <children>
           <component id="d0efc" class="javax.swing.JTextArea" binding="myHintTextField">
             <constraints>
-              <grid row="0" column="0" row-span="1" col-span="1" vsize-policy="7" hsize-policy="7" anchor="0" fill="3" indent="0" use-parent-layout="false">
-                <minimum-size width="300" height="150"/>
+              <grid row="0" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false">
                 <preferred-size width="300" height="150"/>
               </grid>
             </constraints>
@@ -86,7 +89,7 @@
         <children>
           <component id="11499" class="javax.swing.JTextArea" binding="myPlaceholderTextArea" default-binding="true">
             <constraints>
-              <grid row="0" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="7" anchor="0" fill="3" indent="0" use-parent-layout="false">
+              <grid row="0" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false">
                 <preferred-size width="150" height="50"/>
               </grid>
             </constraints>
index 7d661c67e0aff1fac85bc01bf2ab126b7f125565..e1f6fc0a08ad9dc56c0c7f64914ab6ff85e25f0a 100644 (file)
@@ -38,7 +38,8 @@ public class CCCreateAnswerPlaceholderPanel extends JPanel {
 
     myHintTextField.setLineWrap(true);
     myHintTextField.setWrapStyleWord(true);
-    myHintTextField.setBorder(BorderFactory.createLineBorder(JBColor.border()));
+    myPlaceholderTextArea.setBorder(BorderFactory.createLineBorder(JBColor.border()));
+    myHintsPanel.setBorder(BorderFactory.createLineBorder(JBColor.border()));
     myHintTextField.setFont(myPlaceholderTextArea.getFont());
     if (myHints.get(myShownHintNumber).equals(ourFirstHintText)) {
       myHintTextField.setForeground(UIUtil.getInactiveTextColor());