01: package fr.aliacom.form.common;
02:
03: import org.apache.log4j.BasicConfigurator;
04:
05: /**
06: * @author tom
07: *
08: * (C) 2001, 2002 Thomas Cataldo
09: */
10: public final class ToolkitManager {
11:
12: static {
13: BasicConfigurator.configure();
14: }
15:
16: private static Toolkit toolkit;
17:
18: public static void registerToolkit(Toolkit tk) {
19: toolkit = tk;
20: toolkit.init();
21: }
22:
23: public static Toolkit getToolkit()
24: throws NoToolkitRegisteredException {
25: if (toolkit == null) {
26: throw new NoToolkitRegisteredException();
27: }
28: return toolkit;
29: }
30:
31: }
|