01: package net.xoetrope.samples.travel;
02:
03: import net.xoetrope.awt.XImage;
04: import net.xoetrope.xui.XPage;
05: import net.xoetrope.xui.XProjectManager;
06:
07: /**
08: * <p>Title: Xui</p>
09: * <p>Copyright: Copyright (c) Xoetrope Ltd., 1998-2003</p>
10: * $Revision: 1.8 $
11: */
12: public class Start extends XPage {
13: XImage imgHome;
14:
15: public Start() {
16: super ();
17: imgHome = (XImage) componentFactory.addComponent(XPage.IMAGE,
18: 0, 0, 250, 300, "Welcome.jpg");
19: addMouseHandler(imgHome, "nextScreen");
20: }
21:
22: public void nextScreen() {
23: if (wasMouseClicked())
24: XProjectManager.getPageManager().showPage("Services");
25: }
26: }
|