Hey
Is there any way to make a drawString into a hyperlink and make it clickable?
g.drawString(lines[i], x, flexibleHeight + (i * line_height) + flexibleVectorHeight); // drawing one line from the lines-array
that is my string. and I have a gotoURL function:
public void gotoURL(String visitURL){
try {
url = new URL(visitURL);
}
catch(MalformedURLException e){
System.out.println(e);
}
}
Now I want to assign something to that string so that it will be able to set gotURL and execute it via:
gotoURL(urllist[i]);
getAppletContext().showDocument(url);
in my mouse event listener. Anybody have a clue on how to solve this problem? Giving it high points because it has been bugging me for a looong time.
I have sample code somewhere, will post it if i find it
hope this helps