Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat kind of GWT Panel that make Html widgets in it flow like a sentence in a paragraph?
    text
    copied!<p>I want to make each sentence in a paragraph stored inside a html widget. For instance, "I go to school. School is in city. My mom cooks for me. She is one I love"</p> <p>There are 4 sentences in this paragraph and I want to store each of these sentence inside a html.</p> <pre><code> HTMLPanel testHTMLPanel=new HTMLPanel("&lt;p&gt;&lt;/p&gt;"); HTML html1=new HTML("&lt;b&gt;I go to school.&lt;/b&gt;"); HTML html2=new HTML("&lt;i&gt;School is in city&lt;/i&gt;"); HTML html3=new HTML("&lt;b&gt;My mom cooks for me.&lt;/b&gt;"); HTML html4=new HTML("&lt;i&gt;She is one I love&lt;/i&gt;"); testHTMLPanel.add(html1); testHTMLPanel.add(html2); testHTMLPanel.add(html3); testHTMLPanel.add(html4); </code></pre> <p>But it showed one new line for each sentence. The sentences didn't go one after another like in a normal paragraph.</p> <p>PRINT OUT:</p> <p>I go to school.</p> <p>School is in city</p> <p>My mom cooks for me.</p> <p>She is one I love</p> <p>But I want it like this: </p> <p>I go to school. School is in city. My mom cooks for me. She is one I love.</p> <p>Note: if the sentence is very long, then some part of the sentence will be showed in the next line. For example, If we show this long sentence "This is very very long sentence ...... ......<br>some part of it will be on the next line". "some part of it will be on the next line" will be flowed to next line naturally like a sentence in a paragraph. Thus, we can't use label because the whole label will take the whole sentence.</p> <p>I used <code>HTMLPanel("&lt;p&gt;&lt;/p&gt;")</code>, but it didn't work. How to modify this HTMLPanel or any other kind of panel that can solve the problem?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload