Modern Java
http://www.modernminds.com
B each News Demo

As you sit in front of your computer, you might be thinking, "Golly, I wish I was at the beach instead of staring at this monitor!" Well, WildView can't magically transport you to the ocean, but it can give you a (simulated) beach report.

Beach News demonstrates how a WildView applet can be configured to deliver information on the current conditions at Dream Beach in Denver, Colorado. The applet scrolls summary information over an image of the beach, and allows the viewer to click on the applet to receive detailed information pertaining to the currently displayed topic.

When you try the applet, notice how the URL is changed automatically to match the topic being displayed.

A pplet Tag

The applet tag for the Beach News applet is shown below.

<APPLET CODEBASE="../../Java"
  WIDTH="171" HEIGHT="163"
  CODE="WildViewApplet.class">
<PARAM NAME="loadMsg"
  VALUE="Gathering news...">
<PARAM NAME="background"
  VALUE="DocExamples/BeachNews/BeachNews.JPG">
<PARAM NAME="panelSet1"
  VALUE="DocExamples/BeachNews/BeachNews.TXT">
</APPLET>
P anel Set File

The panel set file used by the Beach News applet is shown below.

<PANEL name=TextVScroll module="WVPanelVScroll"
  x=10 y=43 w=151 h=90 clock=60
  fontSize=14 fontStyle=bold pause=enter
  leading=-3 fontColor=ff0000
  mouseX=0 mouseY=0 mouseW=171 mouseH=163>

This is the Denver Dream Beach report for Sunday, June 8th.<P>

<TRIGGER panel=weblink enable=true
  url="../Examples/BeachNews/Weather.html">
<TRIGGER panel=linkText blink=4
  text="Click for Weather Report">
Another sunny warm day is in store for us, though as always there's a chance of afternoon thunderstorms.<P>

<TRIGGER panel=weblink
  url="../Examples/BeachNews/Water.html">
<TRIGGER panel=linkText blink=4
  text="Click for Water & Surf Data">
The water temperature today should be in the upper 70s. Wave heights will average 5 to 6 feet with a period of 10 seconds.<P>

<TRIGGER panel=weblink
  url="../Examples/BeachNews/Events.html">
<TRIGGER panel=linkText blink=4
  text="Click for Special Events">
There are a number of special events going on around town today, including a surfboard swap meet.<P>

<TRIGGER panel=weblink enable=false>
<TRIGGER panel=linkText
  text="Dream Beach in Denver, CO">
Have fun, but look out for sharks!

<PANEL name=linkText module="WVPanelText"
  x=10 y=138 w=151 h=20 background=7C6861
  fontSize=11 fontColor=FFFF00 clock=200
  justify=center align=middle>

Dream Beach in Denver, CO

<PANEL name=weblink module="WVPanelURL"
  x=0 y=0 w=171 h=163 enable=false
  url="../Examples/BeachNews/Weather.html"
  target=beach>

Notice that the panel named "weblink" (which handles the URL) is initially disabled because the first lines of text do not have a URL associated with them. The panel is enabled by the first <TRIGGER> found in the text.

Notice also that the last lines of text do not have a URL associated with them, so the "weblink" panel is disabled just before the text is displayed.
I mage File

The image file used by the Beach News applet is shown below.

BeachNews.JPG
Copyright © 1997 by Modern Minds, Inc.