diff options
author | Audrius Meskauskas <audriusa@Bioinformatics.org> | 2006-07-08 19:46:44 +0000 |
---|---|---|
committer | Audrius Meskauskas <audriusa@Bioinformatics.org> | 2006-07-08 19:46:44 +0000 |
commit | 9ad3adece7759dfca5f82faa14ff0ee5b301ea4c (patch) | |
tree | d2d3a2449501c81209493a74273afd889b3d2755 /examples | |
parent | c079413426b9f3aee12d1d965c63ae786f70b7f5 (diff) | |
download | classpath-9ad3adece7759dfca5f82faa14ff0ee5b301ea4c.tar.gz |
2006-07-08 Audrius Meskauskas <AudriusA@Bioinformatics.org>
* javax/swing/text/FlowView.java (FlowStrategy.layoutRow):
Handle the forced break in the same way as exceeding the
available row space.
* javax/swing/text/html/HRuleView.java: Rewritten.
* javax/swing/text/html/HTMLDocument.java
(HTMLReader.addSpecialElement):Reserve two characters for
the special elements.
* examples/gnu/classpath/examples/swing/HtmlDemo.java
(text): Extended the HTML example to parse.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/gnu/classpath/examples/swing/HtmlDemo.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/gnu/classpath/examples/swing/HtmlDemo.java b/examples/gnu/classpath/examples/swing/HtmlDemo.java index 6ac626717..988b0bd0e 100644 --- a/examples/gnu/classpath/examples/swing/HtmlDemo.java +++ b/examples/gnu/classpath/examples/swing/HtmlDemo.java @@ -63,8 +63,12 @@ public class HtmlDemo extends JPanel JTextPane html = new JTextPane(); - //JTextArea text = new JTextArea("<html><body><p><img src='' alt='alt txt'></p></body></html>"); - JTextArea text = new JTextArea("<html><body><p>nor<font color=red>ma</font>l<sup>sup</sup>normal<sub>sub</sub>normal</p></body></html>"); + JTextArea text = new JTextArea("<html><body><p>" + + "123456789HR!<hr>987654321"+ + "123456789BR!<br>987654321"+ + "<font color=red>ma</font>"+ + "<sup>sup</sup>normal<sub>sub</sub>normal</p><p>Table:"+ + "<table><tr>a<td>b<td>c<tr>x<td>y<td>z</table></body></html>"); JPanel buttons; |