Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Other Java > Java GUI
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Java GUI Discussions specific to programming Java GUI.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java GUI section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old June 17th, 2003, 01:12 AM
Registered User
 
Join Date: Jun 2003
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Run a web page in java application on button click

Respected sirs/madam

  I am in situation wherein i have to display an help page written as an HTML file to the user when he clicks on a menu item.My program happens to be an application.I just don't know which class to use or how i get this done.I'd be greatful to you if you could get me a solution.

Thank you.
Reply With Quote
  #2 (permalink)  
Old June 17th, 2003, 04:10 AM
Authorized User
 
Join Date: May 2003
Location: New Delhi, Delhi, India.
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi

You can display HTML content in Java Applications using the JEditorPane Class this Class supports text/plain ,text/html and text/rtf content type just go through the API documentation provided by SUN.

Yashraj Chauhan
Java\J2EE Specialist
Wiley Support Team
Reply With Quote
  #3 (permalink)  
Old June 28th, 2003, 08:26 AM
Registered User
 
Join Date: Jun 2003
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Yashraj Chauhan, I think you did not understand the question asked by
mathsyaka. He just wanted to know if there is anyway he could load up a browser when a button is pressed from his application. He was not looking for a class the supports html.

I wish I knew how to do it, I would have to him. So, if you think you know it, just show him a typical example. Thank you for your time.

Evans

Reply With Quote
  #4 (permalink)  
Old July 2nd, 2003, 11:40 AM
Registered User
 
Join Date: Jul 2003
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

try looking into the Runtime class, it has a exec method that you could use to shell out commands to dos, it'll launch the web browser for you, but this might only work for windows, not sure about other OS. to test is manually open dos and type something like:
start www.yahoo.com
this should open a browser with yahoo.
Reply With Quote
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
click the button above and redirect another page crmpicco Perl 2 November 16th, 2006 07:46 AM
don't want the page refresh on button click swati_joshi ASP.NET 1.0 and 1.1 Basics 4 July 31st, 2006 04:37 AM
How to Click a web button using VB code AJD Access VBA 6 June 6th, 2006 07:32 AM
How to Click a button on a web page in VB code AJD Beginning VB 6 0 June 2nd, 2006 12:08 PM
rebind dataset from web service after click button blur_ivy .NET Web Services 2 April 15th, 2005 09:09 AM



All times are GMT -4. The time now is 03:13 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.