Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
marshall ma
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
 
erdem ozdemir
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 ]
 
Mahesh x Bogadi
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 ]
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • 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. :-)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!