• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Good Site and a Question

 
Florence Taylor
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,
Feels great to be a part of the Ranch. I visited a site today called thejavahub.com 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
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch, Florence!

I'm moving this to the Applets forum...
 
Florence Taylor
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okie Dokie. I guess its my mistake. I should have done that in the first place. Anyways, thanks Dirk.
 
Joe Ess
Bartender
Posts: 9256
9
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Florence Taylor
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Joe, that was indeed very useful.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic