Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

how to open a IE browser by clicking a URL in the List

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

I am not sure where I should put the question, so I put it here.

There is a List in the GUI, the list contains some URL(String), I want to click one URL in the list to pop up an IE window which is going to the page (where URL point to). I think there is API about this,right?

Any help will be appreciated! (code sample is the best since I am kind of new to java)

Thanks,

marshall
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


This part is for opening IE, for choosing which URL that was selected you should use getSelectedValue() (if you are using a JList..)

[ August 16, 2005: Message edited by: erdem ozdemir ]
[ August 16, 2005: Message edited by: erdem ozdemir ]
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are using an applet..

applet.getAppletContext().showDocument()
 
marshall ma
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks erdem ozdemir and Mahesh Bogadi !! :-) I really appreciate your help!

erdem ozdemir, I have tried your code, it works perfect !!

Best Wishes,
[ August 16, 2005: Message edited by: marshall ma ]
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you're after a minimum of cross-platform functionality, check out BrowserLauncher, which is written in Java and works on multiple platforms.
[ August 16, 2005: Message edited by: Ulf Dittmer ]
 
marshall ma
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ulf Dittmer !!

Fortunately I needn't that advanced feature. :-)
 
reply
    Bookmark Topic Watch Topic
  • New Topic