Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





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.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-13-2008, 11:42 PM
Member
 
Join Date: Jun 2008
Posts: 8
serfster is on a distinguished road
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!
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-14-2008, 12:04 AM
Nicholas Jordan's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Southwest
Posts: 789
Nicholas Jordan is on a distinguished road
Where woudl people be able see the html? To write a web page from java I just put the raw html as string literals.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 06-14-2008, 12:09 AM
Member
 
Join Date: Jun 2008
Posts: 8
serfster is on a distinguished road
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?
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 06-17-2008, 09:54 AM
smartsubroto's Avatar
Member
 
Join Date: May 2008
Location: India,Kolkatta
Posts: 50
smartsubroto is on a distinguished road
Send a message via Yahoo to smartsubroto
You can try this using JEditorPane
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 06-17-2008, 10:12 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,609
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
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.
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 06-17-2008, 10:25 AM
smartsubroto's Avatar
Member
 
Join Date: May 2008
Location: India,Kolkatta
Posts: 50
smartsubroto is on a distinguished road
Send a message via Yahoo to smartsubroto
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..
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 06-17-2008, 10:38 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,609
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
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.
Bookmark Post in Technorati
Reply With Quote
  #8 (permalink)  
Old 06-17-2008, 10:48 AM
smartsubroto's Avatar
Member
 
Join Date: May 2008
Location: India,Kolkatta
Posts: 50
smartsubroto is on a distinguished road
Send a message via Yahoo to smartsubroto
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..
Bookmark Post in Technorati
Reply With Quote
  #9 (permalink)  
Old 06-17-2008, 10:51 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,609
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
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.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to print a HTML file in browser look using JAVA ammameiya Advanced Java 3 06-19-2008 03:52 PM
Include Java file in HTML Page kathyc New To Java 2 03-07-2008 05:51 AM
Help with error message when running JAR via HTML file Simmy AWT / Swing 7 08-12-2007 05:47 PM
how to call a JAR FILE from HTML leonard Java Applets 1 08-05-2007 08:06 AM
how to upload a file along with html form data pranith Java Servlet 3 07-30-2007 04:33 AM


All times are GMT +3. The time now is 12:14 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org