From ba77666b40d71f15c313e800f53db7096f71fce9 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 30 Jan 2004 07:42:33 +0000 Subject: [PATCH] 2003/12/03 06:20:42 darcs-hash:20040130074233-0c9ea-a9f949a262df7a839f50f6cea401d6244d29213e.gz --- src/org/xwt/Box.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/xwt/Box.java b/src/org/xwt/Box.java index 8c36f81..366b04b 100644 --- a/src/org/xwt/Box.java +++ b/src/org/xwt/Box.java @@ -61,6 +61,7 @@ public final class Box extends JSScope { static Hash boxToCursor = new Hash(500, 3); public static final int MAX_LENGTH = Integer.MAX_VALUE; + static final Font DEFAULT_FONT = Font.getFont((Res)Main.builtin.get("fonts/vera/Vera.ttf"), 10); // Flags ////////////////////////////////////////////////////////////////////// @@ -96,7 +97,7 @@ public final class Box extends JSScope { int flags = VISIBLE | PACKED | REPACK | REFLOW | RESIZE | FIXED /* ROWS */; private String text = null; - private Font font = null; + private Font font = DEFAULT_FONT; private Picture.Holder texture; private short strokewidth = 1; private int fillcolor = 0x00000000; -- 1.7.10.4