Results 1 to 5 of 5
  1. #1
    Riftwalker is offline Member
    Join Date
    Jul 2007
    Posts
    13
    Rep Power
    0

    Default Connecting to a Website with the default browser

    I'm not sure exactly which forum this question belongs in but from what information I have found so far, it looks like I might need to make use of applets.

    My question is this: I have an application that when the user gets to a certain point in using it, there is a button that when clicked opens up the default browser with a certain website address already there, so basically clicking the button takes the person to the website. How do I do this?

    Any examples or links to information about doing this would be greatly appreciated. Thanks.

  2. #2
    staykovmarin is offline Senior Member
    Join Date
    Nov 2007
    Location
    Newport, WA
    Posts
    141
    Rep Power
    0

  3. #3
    Riftwalker is offline Member
    Join Date
    Jul 2007
    Posts
    13
    Rep Power
    0

    Default

    This is good and I want to use it but when I try to compile with an application that imports this, it says it does not exist. I have the latest version of Java installed on my comp and I use JGrasp and have the latest version of that. Any ideas on why I can't seem to use the desktop class?

  4. #4
    staykovmarin is offline Senior Member
    Join Date
    Nov 2007
    Location
    Newport, WA
    Posts
    141
    Rep Power
    0

    Default

    You are doing:
    Java Code:
    java.awt.Desktop
    When you say latest, i am assuming you say java 6?

  5. #5
    Riftwalker is offline Member
    Join Date
    Jul 2007
    Posts
    13
    Rep Power
    0

    Default

    Yes, I meant java 6 and I have it working now thanks. I had what you typed but I must have spelled something wrong because when I retried it, it worked. Thanks for the help.

Similar Threads

  1. getting the default browser+MIME data
    By waleed_cs2000 in forum Networking
    Replies: 1
    Last Post: 04-08-2008, 02:31 PM
  2. Kode Java Website
    By wsaryada in forum Reviews / Advertising
    Replies: 4
    Last Post: 01-18-2008, 10:16 PM
  3. Getting content type from a website
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-26-2007, 02:06 PM
  4. Getting character set from a website
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-26-2007, 01:53 PM
  5. How do i read from a website with a certificate??
    By karl in forum Advanced Java
    Replies: 0
    Last Post: 07-12-2007, 05:25 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
  •