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.
This should help ya : http://www.roseindia.net/java/example/java/applet/Opening-a-URL-from-an-Applet.shtml
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?