Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Open a Browser using Java

 
shreehari Gopalakrishnan
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi masters

in one my project i have to create an HTMl editor for that i hve to
make a preview button which automatically saves the content of the editor as .htm file and must open automatically in a browser

so while clicking preview button a browser must be opened automatically with the contents of the TextArea

what can we do for that

Please help me

Thanks in advance
 
Darin Niard
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well you do something like this:

Assuming this is on a windows system and you want to use IE, of course
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Deitel book "Advanced Java 2 Platform How to Program" includes an example application that displays web pages. The example source code from the book can be downloaded at http://www.deitel.com/books/downloads.html#advjHTP1

Take a look at the WebBrowser example in chapter 2. It does what you're trying to figure out.
 
Brian Pipa
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://browserlauncher.sf.net
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic