Solved

SUN APPLET OR NOT

Posted on 2000-03-07
3
253 Views
Last Modified: 2013-11-21
On the front page of www.java.sun.com there is a vertical scrolling applet of sorts, displaying clickable regions. I would like to have aa applet which does much the same but reads in html from a database and display the page inside the applet with all the hyperlinks in place.  I believe I can only do this using xml parsing?  Please help on where to find information on this.
0
Comment
Question by:tjmarjoram
  • 2
3 Comments
 
LVL 2

Expert Comment

by:meming
Comment Utility
If you mean the "Get local!" applet on the left of the page, I can guarantee you that it doesn't use any XML.  It simply take input from parameters of the applet and display them.  The url provided is the base of the actual url of an item in the list.
0
 

Author Comment

by:tjmarjoram
Comment Utility
Edited text of question.
0
 
LVL 2

Accepted Solution

by:
meming earned 80 total points
Comment Utility
Here is a free applet that will do what you want:
http://javaboutique.internet.com/NewsScroller/

What you need to do is to pull the text items and their URLs from your database and generated the input file for the applet in the following format:


                  # Lines starting with a pound sign (#) are comments and ignored.
                  # Blank lines are likewise ignored.

                  # Paramters:
                  #       @HEAD   Requred. Must be the first line of a news item.
                  #               May be more than one line. Terminated by a @URL,
                  #               @MSG, or @END tags.
                  #       @URL    Optional. A URL that will be associated with the
                  #               news item. If the item is clicked on by a mouse,
                  #               the URL will be loaded. Must be all on one line.
                  #       @FRAME  Optional, but URL must be defined. If the item is
                  #               clicked on by a mouse and the URL is defined, this will
                  #               over-ride the TARGET parameter, allowing different frames
                  #               to be targeted by different news items.
                  #       @MSG    Requied. The message text. May be multiple lines.
                  #               Terminated by a @END tag.
                  #       @END    Required. Signals the end of the news item.

                  # Unicode has not been tried within any of these, but I imagine
                  #       it'd work.

                  @HEADThis is a headline.
                  @MSGAnd this is the message text.
                  @END

                  # Linked text
                  @HEADThis is linked
                  @URLhttp://www.io.com/~crackers/index.html
                  @MSGThis is an example of linked text. It reloads the first page.
                  @END

                  # Frame target
                  @HEADFrames!
                  @URLHome.html
                  @FRAMEfrmMain
                  @MSGThis item uses the FRAME parameter. It'll reload the first page in this frame.
                  @END

                  # Real news
                  @HEADActual News!
                  @MSGNote for previous users: the HrefScroller class is gone. It's
                  URL linking and mouse detection methods have been rolled into the
                  Scroller class.
                  @END

                  # Java Boutique
                  @HEADJava Boutique
                  @URLhttp://javaboutique.internet.com/
                  @MSGThis is one of my favorite places to look for applets and
                  Java news. They were also kind enough to judge this thing was
                  good enough to win a contest!
                  @END

                  # Long headline
                  @HEADThis is an incredibly long headline. It's doubtful that
                  you would want to do this, but the capability is there.
                  @MSGOkay?
                  @END

                  # The End
                  @HEADThe End
                  @MSGThis is the last message. As soon as it's scrolled off,
                  everything starts over again.
                  @END


The following ones will cost you:
http://www.liquidcool.com/java/catalog.asp?id=122
http://www.vivaorange.com/oimessenger/Ex1/index.html
http://javaboutique.internet.com/RiadaHeadline/

Applet collections:
http://javaboutique.internet.com/applets/
http://www.davecentral.com/javanews.html
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now