It's not a secret anymore!
The moose likes Applets and the fly likes Good Site and a Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Good Site and a Question" Watch "Good Site and a Question" New topic

Good Site and a Question

Florence Taylor

Joined: Oct 25, 2004
Posts: 3
Hi everyone,
Feels great to be a part of the Ranch. I visited a site today called to which i got linked from the signature in one of the posts. I've submitted my applications to them and wanted to know if anyone of you has used their services before. Generally the site looked good, but dunno how much they are worth.

Well, I've got a question too. You know, how we can use AppletContext.showDocument() to make a webpage launch in a browser. Well, I wanted a swing application to do the same. However, when I tried that, it didn't work. It works fine when i get an applet to do the same. I'd imported the java.applet package in this application. My purpose to get this done is to actually link to my home page from the about dialog of this application.

Thanks in advance.
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Welcome to JavaRanch, Florence!

I'm moving this to the Applets forum...

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Florence Taylor

Joined: Oct 25, 2004
Posts: 3
Okie Dokie. I guess its my mistake. I should have done that in the first place. Anyways, thanks Dirk.
Joe Ess

Joined: Oct 29, 2001
Posts: 9189

I think Dirk jumped the gun here. This is a general Java question, not an applet question.
In any case, the reason why AppletContext.showDocument() doesn't work in an application is because if you don't have an applet (i.e. launched by a browser), you don't have an applet context. And showDocument just tells the browser to navagate. No browser, no navigation. Take a look at BrowserLauncher. That should fit your need.

[How To Ask Questions On JavaRanch]
Florence Taylor

Joined: Oct 25, 2004
Posts: 3
Thanks Joe, that was indeed very useful.
I agree. Here's the link:
subject: Good Site and a Question
jQuery in Action, 3rd edition