Solved

SUN APPLET OR NOT

Posted on 2000-03-07
3
260 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
xampp tool 12 56
SHA2 certs for IIS AND Java? 2 113
Selenium docs api java index 3 48
Java 8 to Java 6 8 22
Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

830 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