Opening JTextPane hyperlink in a browser window

hi
I have a hyperlink in a JTextPane how can i open the webpage in a browser window?
thanks

try this by sending the url string from the text area to the method..
import java.util.*;
class IE
     public static void main(String ar[])
          IE ie = new IE();
          ie.openURL("www.java.sun.com");
     public void openURL(String url)
          try
               Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + url);
          catch(Exception e)
u can also check the java API for JEditorPane for further help.

Similar Messages

  • Is it possible for multiple/different hyperlinks to open up in the SAME browser window?

    I am able to put hyperlinks to various web pages in a PDF document.  When I click on the first one, it opens up in a new browser window.   The problem is that I want each subsequent link to reuse that same browser window.  This seems to work when I open up the PDF document from my desktop, but if the document is first loaded into a web page, each link opens up a *new* browser window.

    Hi Pat,
    Thanks for the quick response.
    I used Adobe Acrobat Professional 8 to create the document.  I added a link and then in the "Actions" property for the link, I specified
    "Run a javascript":  app.launchURL("http://www.cnnfn.com", true) .
    I had to use the app.launchURL method because the "Open a Web Link" action causes a warning message to appear when the PDF is contained in web page.  You have to first click "Open in a new window" before the url is opened up in a new browser window.  The behavior that we want is that each time you click on a hyperlink on the PDF, you are automatically taken to a specific browser window (without warning and reusing the window that has already been opened).
    -Elsie

  • Since I installed Firefox 3.6.3, every time I open Google Notifier, two Firefox browser windows open.

    I am running Firefox 3.6.3 on my Mac G5 and my MacBook.
    Since I installed Firefox 3.6.3, everytime I open Google Notifier, two Firefox browser windows open. This happens on both of my computers.
    This never used to happen before, in the earlier versions.
    How do I make it so that only one browser window opens?
    == This happened ==
    Every time Firefox opened
    == I installed Firefox 3.6.3 ==
    == User Agent ==
    Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

    I got this all screwed up too.
    hmm.. where to start?
    3.6 and 4.0 beta - really aren't intended to play well together.
    As has been mentioned above, they tend to write over each other.
    I managed to get both 3.6.15 and 4.0 beta 12 on the same machine.
    But, I had to do it several times.
    I got lucky by deleting everything Mozilla, then installing 4.0b12, then 3.6.15 - while making sure that each installed into a separate folder.
    I also took care to copy out a couple of BookMark BackUp files - just in case.
    My old 3.6# had become so bloated - and, Unstable - for Me, it was time.
    The bookmarks were all that I was still interested in.
    All the Plugins, Themes, AddOns, etc... had slowed the app to a crawl.
    So, I did as complete a wipe of Mozilla bloat code that I could, including profiles.
    I then did some registry cleaning.
    Then I installed 4.0b12 and 3.6.15.
    I can't open them both at the same time.
    If I open 3.6.15 first, then open 4.0b12 - the beta comes up as 3.6.15.
    If I open 4.0b12 first, then open 3.6.15 - the 3.6 comes up as the beta.
    This has a lot to do with both apps sharing the same default profile.
    I hope to drop down to one app in the near future.
    So, cobbling multiple profiles in order to diddle side by side apps - isn't worth it at this stage.
    For me, I can't open FF 4.0b12 when my virus protection is running. PCTools doesn't like some thing about the way FF4.0 wants to phone home when it opens.
    So, I can't commit to the 4.0b12, yet.
    3.6.15 was crashing on open too - until I uninstalled the feedback addon. - go figure -.
    Also, I can't get the 4.0b12 to start in safe-mode with the PCTools antivirus running.
    At the rater they are going, I don't see 3.6.# going away any time soon.

  • When I have the downloads window open and I close the browser window, how can I get the browser to open the homepage the next time I start it while the download window is still open?

    When I have the downloads window open and I close the browser window, the next time I reopen the browser while the downloads are still going, it returns me to the last page I was on. All previous versions of Firefox would return me to my homepage which I would prefer. Please let me know if this is possible.

    When you re-open Firefox and choose Restore Session, by default it picks up your most-recently-open window, and the other windows should then show up in Recently Closed Windows.
    The Firefox add-on Session Manager lets you manage how many closed windows and closed tabs are saved, in case it's not enough.

  • IWeb link opening in a external (new) browser window.

    Dear members:
    After making several unsuccessful attempts to find this information I decided to post a questions here to see if anyone has the answer.
    I have created two web site with several web pages in iWeb but haven't been able to add links to a page that open not in that same page but to open in an extra (external) browser window. Is there a way to make a link open in a different browser window than the one that has the page with the link ?
    Another question I have refers to iWeb's display of some images. For my web sites I chose one of the templates offered with the program. In one of the pages there are small portions of text followed by a square image next to it. Some of the images in iWeb work as placeholders that are replaced by the final images once they are dragged and dropped over them. However, this small images following the text don't behave like that. They simply aren't replaced. I tried to "overlay" the final images over the template ones thinking that once the site was published they would be replaced. Actually, after posting the web site I noticed that when the pages load the template images show up first and them the ones I placed over them beginning to cover them.
    Why is this happening and how can I solve this problem ?
    Thank you in advance for your help.
    Best regards,
    Joseph Chamberlain

    Dear varkgirl:
    Thank you very much for your help and valuable suggestion.
    I've tried your suggestion but ran into some problems. The links I am trying to open in another window are actually PDF files that the viewer can download from my website.
    Since I was having problems I decided to try something else. After publishing the website to my desktop I then opened the pages where the links are in Dreamweaver. The layout view is great and displayed the image just the way it appears on the browser's window. I first selected the "link button" to the file and then in the inspector windows (bottom of the page) I chose under target the "_blank" option. This tells the software that the linked page or file is to be opened in a new blank browser window. I then saved the page (re-saved it over the existing file) to incorporate the changes. After this I proceeded to navigate through the website and everything works great.
    Thank you for your help and suggestions. I just thought I would post this here in case it may be of help to you as well as others.
    Best regards,
    Joseph Chamberlain

  • Opening a servlet in new browser window

    Does anyone know how you can make a servlet open in a a new browser window when clicking a link for that servlet.
    cheers

    Hi..
    do
    window.open("http://localhost:8080//yourservlet-path//servlet-name");
    you can also set window properties, they are passed as parameters to window.open
    see syntax of window.open. but this thing will open your servlet in a new window with default properties.

  • Opening Hyperlinks in New Browser Window?

    Hi All,
    Does anyone know how to have keynote open a hyperlink in a new browser window? I have exported my keynote presentation to a quicktime moive and posted it on the web.
    However, when someone clicks on one of the hyperlinks it opens the new website in the same browser window. When they click the Back button to go back to my Keynote quicktime movie it starts the presentation/movie over.
    Any help you may have to offer would be GREATLY appreciated! Thank you!

    Hi All,
    Does anyone know how to have keynote open a hyperlink in a new browser window? I have exported my keynote presentation to a quicktime moive and posted it on the web.
    However, when someone clicks on one of the hyperlinks it opens the new website in the same browser window. When they click the Back button to go back to my Keynote quicktime movie it starts the presentation/movie over.
    Any help you may have to offer would be GREATLY appreciated! Thank you!

  • Targeting url hyperlink to blank browser window

    Hi everyone,
    I have an indesign file and have created some hyperlinks that go to specific URLs. After I export to pdf the file is uploaded and is embedded in a browser. When this happens, the problem is that when the hyperlink is clicked, the destination page opens in the same browser window, so I wondered if there was a way to customise the link in Indesign so that it will open in a blank browser window once the pdf file is within the browser. I know I would have to use target="_blank" but I don't know if there's a way to add this within ID.
    I wondered if anyone has had this scenario and whether there's any solution?
    Once again, I appreciate any advice.

    There's the APex javascript function you can use html_PopUp - you can use it in the button's URL Target:
    google it to get more details - you can specify the new window name e.g. myWindow and window size etc
    javascript:html_PopUp('http://www.google.com','myWindow');

  • Opening sales order in new browser window

    hi experts,
    i have ALV table in which one of the columns is sales order number. I made the column as hyperlink so that user can click on it. when the user clicks on this i am calling an event handler method which is linked on_click event of the ALV interface controller . i am able to capture the sales order number in the method. Now i want to call va03 transaction for this sales order in a new browser window. we are going to integrate this application in portal. any ideas?. i heard something about the object based navigation. how to do this?
    thanks
    Edited by: sudhakar murthy on May 12, 2010 6:04 PM

    Hi Sudhakar,
    Check out the below code to open a Transaction from WD in an external window and pass the value in that Transaction. I am passing the value here in the VF03 transaction's Billing document screen field .
      DATA: url TYPE string,
            host TYPE string,
            port TYPE string.
    *Call below method to get host and port
      cl_http_server=>if_http_server~get_location(
         IMPORTING host = host
                port = port ).
      CONCATENATE host ':' port
      '/sap/bc/gui/sap/its/webgui/?~transaction='
      '*VF03 VBRK-VBELN=123456' " 123456 is the value you are passing into the Billing document screen field of the    
       INTO url.                                      "VF03   transaction
    *get the window manager as we are opening t code in external window
      DATA lo_window_manager TYPE REF TO if_wd_window_manager.
      DATA lo_api_component TYPE REF TO if_wd_component.
      DATA lo_window TYPE REF TO if_wd_window.
      lo_api_component = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
    call the url which we created above
      lo_window_manager->create_external_window(
      EXPORTING
      url = url
      RECEIVING
      window = lo_window ).
      lo_window->open( ).
    Hope it helps you...

  • Do NOT want to open link in a new browser window - iWeb '09

    I do not want links that navigate around my website to open a new browser window every time. Right now, for example, From my main page, I click a link to a secondary page, it opens it in a new window, I then click the link back to my main page, and it opens in a new window. I now have 3 windows open.
    I am not using the navigation bar as it set ups with iWeb (I have it hidden). I am using hyperlinks I attached to text boxes. Would this problem be remedied if I was using the navigation bar? If so, is there anyway to edit the appearance of the navigation bar and it's location on the page?
    Primarily though, I would like my text hyperlinks to just navigate my page and not open in new windows.
    Thanks!

    And that's the way it should be.
    If you look at this page about navigation you'll see that the main navigation uses eternal links and the sub navigation internal ones....
    http://www.iwebformusicians.com/WebMusic/Navigation.html
    Try the troubleshooting steps under "Fix iWeb" here.....
    http://www.iwebformusicians.com/WebMusic/iWebTips.html

  • Open discoverer report in new browser window and without connections page

    Hi All,
    We are using Oracle 11g Discoverer 11.1.1.4.  Requirement is to open the discoverer report in a new browser window and without connections page.
    When we are running discoverer reports with this parameters we unwantedly get the connections page of the discoverer plus which we don't want.
    Went through the documentation given in this page and followed it still the issue persists, and i see couple of threads with my issue and no updates.
    This excerpt is from the documentation available in the link
    " _plus_popup=true and framedisplaystyle=embedded launches Discoverer Plus in a new pop-up browser window that contains the Plus applet embedded in it "
    http://www.art2dec.com/documentation/docs/oas10g1012/linux/bi.1012/b13918/urlstart.htm
    and Here is what we use to invoke our reports.
    http://ipaddress:port/discoverer/plus?cn=cf_123&_plus_popup=TRUE&framedisplaystyle=EMBEDDED&wb=disc_wb_1
    Request the forum users from PRO discoverer group to help me out of this issue and expect a good discussion on this.
    Thanks in advance

    Closing the thread
    We were able to achieve by changing the browser settings in the IE 8 Browser. Disabled Tabbed browsing.

  • Open URL Link in new browser window

    Can someone please help me? I've tried to use code as if I were using Dreamweaver without any luck(i.e. blank target).
    Is there a way to make the url in the PDF open a new browser windows once clicked? Hopefully this is an easy fix! Thanks in advance!

    Jono, if you are still out there.  I am also having trouble with this function.  The button works just fine, but it does not open another browser window.  I am trying to keep my pdf open, and send them to a url.  That way they can come back to the form. Like you would with the target="_blank" function in javascript.
    What am i doing wrong?  I have tried opening the script editor, but I am not sure what to do there. So I put the same as you did on your form, no effect.  I put target="_blank" and set it to javascript on just about every option.  I have tried to go into the code on the xml source tab, no luck anywhere.  I have tried to just use a text field, no luck.
    Seems like everything I have tried has no effect.
    Hopefully you can tell me it is something simple...
    Thanks in advance.
    Jodi

  • How to open "AppServer Control" in same browser window as "Launch Control"?

    When I start the SOA Suite start web page ""SOA Launch Control" and I click e.g.
    on the link "Application Server Control" then another browser window is opened
    for the "Enterprise Manager".
    Is there a way to tell the SOA Suite to open the new web page inside the
    current "Launch Control" web page (=replace the current "Launch Control"
    web page) ?
    Peter

    You can look this extension if you want to sign on with different identities at the same time:
    * Multifox: http://br.mozdev.org/multifox/
    You can also use multiple profiles to rule out issues caused by extensions or other changes that you've made in your current Firefox profile as posted above.
    * http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    * http://kb.mozillazine.org/Shortcut_to_a_specific_profile
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox
    Use the -no-remote command line switch to open another Firefox instance with its own profile if you want to run different Firefox versions simultaneously.
    * http://kb.mozillazine.org/Opening_a_new_instance_of_Firefox_with_another_profile

  • Opening driving directions in new browser window

    I have installed the Web Assist Google Pro Maps extension and
    would like for the div containing the driving directions results:
    <div id="wagmp_directions_2"
    to appear in a new browser window.
    However, when I open the tag inspector, it says "locked
    region" for the Google maps divs, even though I detached the php
    page from the template. Any ideas?
    http://www.lindafarronknapp.com/map.php

    Sorry, mixed up my versions a bit. The following code doesn't open a new window.
    try {
                JSObject window;
                window = JSObject.getWindow(this);
                URL url = new URL(this.getCodeBase(), "mydomain/mypage.jsp");
                window.eval("window.open(" + url +")");
            catch (Exception e) {
                e.printStackTrace();
    }It doesn't do anything, instead I'm getting the following output in the trace:
    liveconnect: the url of the applet is http://localhost:29080 and the permission is = false
    liveconnect: JavaScript: UniversalBrowserRead enabled
    liveconnect: JavaScript: UniversalJavaPermission enabled
    liveconnect: JSObject::eval(window.open(http://localhost:29080/mydomain/mypage.jsp))
    liveconnect: the url of the applet is http://localhost:29080 and the permission is = falseI'm testing this code on Linux, FIrefox 1.5.0.3 and JDK1.5.0_07.
    What I'm doing wrong?
    Thanks.
    Stephan

  • Open .swf in full-screen browser window?

    Hi there! I would appreciate if someone could help me with this:
    I have a .swf that I embed in an .html file. When loaded, the html file opens up in a window with the application taking up only 50% of the window. I'd like to have the application open in a window that's full screen. Is that possible at all?
    The .html file I'm using is a standard one generated by Captivate and looks like this:
    <!-- Copyright [2008] Adobe Systems Incorporated.  All rights reserved -->
    <!-- saved from url=(0013)about:internet -->
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Title</title>
    <script src="standard.js" type="text/javascript"></script>
    </head>
    <body   bgcolor="#ffffff">
    <center>
        <div id="CaptivateContent"> </div>
        <script type="text/javascript">
           var so = new SWFObject("myfile.swf", "Captivate", "891", "551", "10", "#ffffff");
            so.addParam("quality", "high");
            so.addParam("name", "Captivate");
            so.addParam("id", "Captivate");
            so.addParam("wmode", "window");
            so.addParam("bgcolor","#ffffff");
            so.addParam("menu", "false");
            so.addVariable("variable1", "value1");
            so.setAttribute("redirectUrl", "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash");
            so.write("CaptivateContent");
        </script>
        <script type="text/javascript">
            document.getElementById('Captivate').focus();
            document.Captivate.focus();
        </script>
    </center>
    </body>
    </html>

    Hi,
    What do mean by browser window?
    If you mean the File>Open dialog, double click on the Title bar to get it back to a smaller size.

Maybe you are looking for

  • Previewing songs in iTunes on ipad2

    Why can't I hear the preview song clips in iTunes on my ipad2?  When I click on a song It looks like it's loading but never plays the preview song.

  • Animated Globe - Please help!

    Hi Everyone, First off let me please start by saying thanks in advance! I was hoping someone could help me out. I wanted to add the rotating globe to a family movie but my OS is messed up! Can anyone just create an MOV file for me and email it?? All

  • Oracle White Paper- Storage Option for RAC. on Linux

    hi.. This in reference with White Paper.. Stotage Option for RAC on LINUX. Author- Umadevi Byrappa. Which states on page 10: To Use NAS for RAC database file storage select the file system storage option in OUI. or the Clustered file system storage o

  • UMFactory.getRoleFactory().getMutableRole(roleid) causing error message

    Hi Experts, I am getting following error message. Can you please help me in resolving the issue. The message is being thrown by      } catch (UMException e) {                wdComponentAPI.getMessageManager().reportException(                     "Err

  • BUG? Fireworks to DW CSS gradients not consistent across browsers...?

    Greetings - I don't know if this is a bug or what, but after watching one of the Adobe TV roadshow videos I generated CSS gradients in Fireworks, selected ALL the browser compatible translations Fireworks provides and then copied/pasted the CSS into