|
|
|
|
Welcome to the Java Forums.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:
- have access to post topics
- communicate privately with other members (PM)
- not see advertisements between posts
- have the possibility to earn one of our surprises if you are an active member
- access many other special features that will be introduced later.
Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact us.
|
|

06-13-2008, 11:42 PM
|
|
Member
|
|
Join Date: Jun 2008
Posts: 8
|
|
|
HTMl file
Is it possible to display an html file in a java application and if so, how? Don't ask why I need to do this, I just do!
|
|

06-14-2008, 12:04 AM
|
 |
Senior Member
|
|
Join Date: Jun 2008
Location: Southwest
Posts: 789
|
|
|
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-14-2008, 12:09 AM
|
|
Member
|
|
Join Date: Jun 2008
Posts: 8
|
|
|
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, 09:54 AM
|
 |
Member
|
|
Join Date: May 2008
Location: India,Kolkatta
Posts: 50
|
|
|
You can try this using JEditorPane
|
|

06-17-2008, 10:12 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,609
|
|
|
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.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Has someone helped you? Then you can To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post.
Want to make your IDE the best? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

06-17-2008, 10:25 AM
|
 |
Member
|
|
Join Date: May 2008
Location: India,Kolkatta
Posts: 50
|
|
|
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, 10:38 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,609
|
|
|
Did you read the documentation for exec?
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Has someone helped you? Then you can To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post.
Want to make your IDE the best? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

06-17-2008, 10:48 AM
|
 |
Member
|
|
Join Date: May 2008
Location: India,Kolkatta
Posts: 50
|
|
|
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, 10:51 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,609
|
|
|
You said this is working fine?
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Has someone helped you? Then you can To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post.
Want to make your IDE the best? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
All times are GMT +3. The time now is 01:39 AM.
|
|
VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org