Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SUN APPLET OR NOT

Posted on 2000-03-07
3
Medium Priority
?
270 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 320 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
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 …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses

927 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