Results 1 to 6 of 6
  1. #1
    JonniBravo is offline Member
    Join Date
    Sep 2010
    Posts
    6
    Rep Power
    0

    Default How can I create links in Java

    Hi,

    How can I create a links to websites within java and keep the browser within the application.

    The main thing I need to know though is how I go about creating an application with a Header link-sub links- then upto 4 website links for each sub link

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,450
    Rep Power
    19

    Default

    Not sure what you're trying to do?
    On the browser all you have is HTML and javascript, so links are links.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,607
    Rep Power
    23

    Default

    The AppletContext class has a showDocument method that can be used to tell the browser to load/show another page.

  5. #5
    JonniBravo is offline Member
    Join Date
    Sep 2010
    Posts
    6
    Rep Power
    0

    Default

    Forgive me for being a bit dense!!!!!

    I didnt really want to give too much away about my project, but basically I want to replicate what I did on this site in a java application:

    Bradford City Info/Forum |

    In the middle of the page are a set of football team names with links added to them when you hover the mouse over them.

    I thought about creating a Jtree but I found that too messy so what I would like to do is create a button with the teams name i.e

    Bradford
    halifax
    leeds
    Ect....

    That then opens another set of options linked to websites, I was hoping to keep this within the application to save the browser windows opening all the time.

    Hope this helps, sorry for the confusion and thanks in advance.
    Last edited by JonniBravo; 09-10-2010 at 02:08 PM.

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,450
    Rep Power
    19

    Default

    Ohhhhhh!

    I thought you were on about a webapp, not a desktop (or applet) one!
    Bit out of my field that one...you could try the Swing forum?

Similar Threads

  1. Please click my links
    By clydedoris in forum Reviews / Advertising
    Replies: 0
    Last Post: 07-19-2010, 11:42 AM
  2. FTP by web links
    By yap_1991 in forum New To Java
    Replies: 1
    Last Post: 07-12-2010, 04:23 PM
  3. [Java] getting links from website source
    By pietertje in forum New To Java
    Replies: 6
    Last Post: 07-01-2010, 09:36 PM
  4. Skipping links!!!
    By jvh in forum New To Java
    Replies: 2
    Last Post: 03-04-2010, 12:11 AM
  5. links between variables
    By Keerti in forum New To Java
    Replies: 2
    Last Post: 08-12-2008, 03:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •