Solved

SUN APPLET OR NOT

Posted on 2000-03-07
3
259 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
ID: 2593894
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
ID: 2595098
Edited text of question.
0
 
LVL 2

Accepted Solution

by:
meming earned 80 total points
ID: 2596696
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

770 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