diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | examples/gnu/classpath/examples/swing/HtmlDemo.java | 4 |
2 files changed, 8 insertions, 1 deletions
@@ -1,5 +1,10 @@ 2006-11-06 Roman Kennke <kennke@aicas.com> + * examples/gnu/classpath/examples/swing/HtmlDemo.java: + Fixed initial window size and start document. + +2006-11-06 Roman Kennke <kennke@aicas.com> + * javax/swing/text/html/HTMLDocument.java (HTMLReader.addSpecialElement): Removed comment about htmlAttributeSet. diff --git a/examples/gnu/classpath/examples/swing/HtmlDemo.java b/examples/gnu/classpath/examples/swing/HtmlDemo.java index 988344f5d..4cbf3ce47 100644 --- a/examples/gnu/classpath/examples/swing/HtmlDemo.java +++ b/examples/gnu/classpath/examples/swing/HtmlDemo.java @@ -152,7 +152,7 @@ public class HtmlDemo extends JPanel add(scroller, BorderLayout.CENTER); // Load start page. - URL startpage = getClass().getResource("forms.html"); + URL startpage = getClass().getResource("welcome.html"); try { html.setPage(startpage); @@ -162,6 +162,8 @@ public class HtmlDemo extends JPanel { System.err.println("couldn't load page: " + startpage); } + + setPreferredSize(new Dimension(600, 400)); } /** |