Results 1 to 4 of 4
  1. #1
    katie is offline Member
    Join Date
    Jul 2007
    Posts
    41
    Rep Power
    0

    Default how to open a file through URL

    I need to display a web page by given URL.
    Is it possible in java?? How can I do that?
    can you help me?

  2. #2
    elizabeth is offline Member
    Join Date
    Jul 2007
    Posts
    40
    Rep Power
    0

    Default

    Yes. You could use JEditorPane component.

  3. #3
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    8

    Post html editor

    There is a class that will display an html page with remarkable power, I can help you find it if you need. URL class is well documented and will do the network activity that is needed to get the html file from the remote.
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

  4. #4
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    760
    Rep Power
    8

    Default

    You can read the web page using java.net.URL class by passing the page URL address, then create an InputStream object to transfer its contents by opening the stream of the URL object.

Similar Threads

  1. open a pdf file in linux
    By aparna in forum Advanced Java
    Replies: 5
    Last Post: 06-08-2010, 12:51 PM
  2. Is it possible to open a txt file?
    By jason27131 in forum New To Java
    Replies: 20
    Last Post: 08-07-2007, 01:24 AM
  3. Open Blue Lab 1.3.0
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 07-19-2007, 03:37 PM
  4. open lazlo
    By Peter in forum Advanced Java
    Replies: 2
    Last Post: 07-04-2007, 06:22 AM
  5. Open Blue Lab 1.2.17
    By levent in forum Java Software
    Replies: 0
    Last Post: 06-07-2007, 08:57 AM

Posting Permissions

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