Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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: 43016
76
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Thanks Ulf Dittmer !!

Fortunately I needn't that advanced feature. :-)
 
Popeye has his spinach. I have this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic