Results 1 to 12 of 12
Thread: HTMl file
- 06-13-2008, 09:42 PM #1
Member
- Join Date
- Jun 2008
- Posts
- 8
- Rep Power
- 0
- 06-13-2008, 10:04 PM #2
Where woudl people be able see the html? To write a web page from java I just put the raw html as string literals.
- 06-13-2008, 10:09 PM #3
Member
- Join Date
- Jun 2008
- Posts
- 8
- Rep Power
- 0
I am trying to get something like a box that contains a web page to appear within a GUI application. Is this possible to code?
- 06-17-2008, 07:54 AM #4
You can try this using JEditorPane
- 06-17-2008, 08:12 AM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
That's the best option we have, if we want to interact with the web page, like URLs and so on. You can do it on a label too. Not not perfect at all.
- 06-17-2008, 08:25 AM #6
Reply
hey Eranga,
i can open an html page using JEditorPane.
But what if i want to open an simple html page in a browser itself.
will Runtime.getRuntime().exec("C:/Program Files/Internet Explorer/iexplore.exe"+" help.html") ; serve the purpose????
/*help.html is the required html file which is stored in the same folder*/
Thanks in advance..
- 06-17-2008, 08:38 AM #7
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Did you read the documentation for exec?
- 06-17-2008, 08:48 AM #8
Hi Eranga,
No i haven't i only know that that exec is used to run application.Any way i solved my problem.
i use the following code:
Runtime.getRuntime().exec(cmd start help.html);
and its working fine..
Thanks alot for your concern..
- 06-17-2008, 08:51 AM #9
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
You said this is working fine?
- 02-12-2009, 05:31 PM #10
Member
- Join Date
- Feb 2009
- Posts
- 1
- Rep Power
- 0
Hello everyone
I am new to this forum. Have developed in Java a few years ago. At the moment, I am not using Java seriously but am planning to. So, I see myself as a beginer but hope to be of help as I get back in the game.
Kind regards
Timo
- 02-12-2009, 11:51 PM #11
Timo, please only post things relevant to the thread's subject. To introduce yourself, there is an Introductions form in the home page. Hijacking someones thread is not a good idea, it is pretty easy to make your own thread (and in correct forum).
Last edited by MK12; 02-13-2009 at 12:29 AM.
Tell me if you want a cool Java logo avatar like mine and I'll make you one.
- 02-13-2009, 05:26 AM #12
Senior Member
- Join Date
- Dec 2008
- Posts
- 526
- Rep Power
- 0
Similar Threads
-
How to print a HTML file in browser look using JAVA
By ammameiya in forum Advanced JavaReplies: 5Last Post: 06-25-2010, 02:36 AM -
Include Java file in HTML Page
By kathyc in forum New To JavaReplies: 2Last Post: 03-07-2008, 03:51 AM -
Help with error message when running JAR via HTML file
By Simmy in forum AWT / SwingReplies: 7Last Post: 08-12-2007, 03:47 PM -
how to call a JAR FILE from HTML
By leonard in forum Java AppletsReplies: 1Last Post: 08-05-2007, 06:06 AM -
how to upload a file along with html form data
By pranith in forum Java ServletReplies: 3Last Post: 07-30-2007, 02:33 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks