doesnt seem like it....
well I tried to simply insert a <html><a href=\"mypage.htm\">test
text</a></html> into a messagebox, seeing how message boxes accept
html, but I cant even get the hyperlink to open up a browser, it doesnt
even recognize it as a link.
Im trying to find a solution of some sort, but it does seem like i
would need the user to copy and paste the address into their browser, a
step that I really dont want them to have to take, because I think they
just wont do it...
any ideas for me?
VisionSet - 21 May 2006 20:10 GMT
> doesnt seem like it....
>
> well I tried to simply insert a <html><a href=\"mypage.htm\">test
> text</a></html> into a messagebox, seeing how message boxes accept
> html, but I cant even get the hyperlink to open up a browser, it doesnt
> even recognize it as a link.
You have to do some extra stuff to make it follow links.
It is quite straightforward and there is code example in JEditorPane API
docs
--
Mike W
tiewknvc9 - 21 May 2006 20:19 GMT
I believe that the JEditorPane API explains how to get hyperlinks to
open within the JEditorPane (I read the documentation earlier), only
since the submit button still wont function the way I want it to, I was
hoping that there way some other way to get the real OS to handle a web
link.... and open it in another better created browser?
IchBin - 21 May 2006 20:52 GMT
> doesnt seem like it....
>
[quoted text clipped - 9 lines]
>
> any ideas for me?
If you are using JDK 1.6 you can now call the default machine browser
and pass the url you want to load via Net Class. I do not have the
commands in front of me. It is only takes two or three net commands.
You can use a program called 'BrowserLauncher'. The current
version is called 'BrowserLauncher2'.
http://browserlaunch2.sourceforge.net/docs.shtml#files
I have used BrowserLauncher in the past and you just need to add the
following to call it:
try {
BrowserLauncher.openURL("http://browserlaunch2.sourceforge.net/index.shtml");
} catch (IOException e) {
Error.errorMessage(e);
}
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)