How to add link in any variable in java program?

Discussion in 'Programming' started by ichkoguy, Mar 24, 2009.

  1. #1
    I need some help. I have written a program(java) for my project. Now that in the final stage, it will display some results in the screen. Say the result will be like:

    page1
    page2
    page3

    Now i have to give links to each page1, page2, page3. So when the user clicks any of these results, there must be a link given to a text file. Hence when clicked, the text document must be opened.

    I want to know on how to add links like this. I can do this in HTML with the <a href=""> tag. But do not know in java.
     
    ichkoguy, Mar 24, 2009 IP
  2. ActiveFrost

    ActiveFrost Notable Member

    Messages:
    2,072
    Likes Received:
    63
    Best Answers:
    3
    Trophy Points:
    245
  3. ichkoguy

    ichkoguy Active Member

    Messages:
    666
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Thank you for the help dude. But the problem is that, you give a URL link to the button. But i want the link to a file which is there in my system itself. I have placed that file in the bin folder itself. So is there any way?
     
    ichkoguy, Mar 25, 2009 IP