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
Joined: Jun 08, 2004
Posts: 118
posted
0
Well you do something like this:
Assuming this is on a windows system and you want to use IE, of course
Dirk Schreckmann
Sheriff
Joined: Dec 10, 2001
Posts: 7023
posted
0
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.