Using hyperlinks in a scrollpane.

Well, Ive finally been able to display the webpages in my scrollpane now. But when i move my mouse over the hyperlinks.....it doesn't change, and won't go to the located urls. What am I doing wrong please?
Thanx

You need to add hyperlink event listeners to your JEditorPane. This is because the editor pane only displays the document, it doesn't do anything about the hyperlinks itself.
This is the usual way to do it...
    JEditorPane myEditorPane;
    myEditorPane.addHyperlinkListener(new MyHyperlinkListener());
    class MyHyperlinkListener implements HyperlinkListener {
        public void hyperlinkUpdate(HyperlinkEvent evt) {
            HyperlinkEvent.EventType type = evt.getEventType();
            if (type.equals(HyperlinkEvent.EventType.ACTIVATED)) {
                // the hyperlink was clicked or activated by the keyboard or some other way, so change the editor to that URL.
                myEditorPane.setPage(evt.getURL());
            // there is also ENTERED and EXITED, which roughly equate to HTML's mouseover, mouseout events.

Similar Messages

  • Use HyperLink(mailto:...) to open a file?

    A question was posted previously about linking to an image file. The HYPERLINK function allows this if the image is on a web server and can be accessed via http:// but you can't use HYPERLINK to access a local file on your computer (or at least I can't seem to). The HYPERLINK function will also take a mailto: command and will open up your mail client with the address, subject, and message of your desire. I was wondering if it could also use the "attachment=..." part of the mailto command to attach a file to the email. Thus you could bring up a local image in your email client. I failed at getting it to work but I may have been formatting the command wrong. Anyone have experience with the proper formatting or anyone know if this is not a supported functionality?

    As System Events returns an URL when we ask it for a file's properties, I tried to use this URL with no results but the files where on a single machine.
    Maybe it behaves differently on a network.
    To get the URL I uses this script:
    set thefile to "Western 4:photos ???:PA030012.JPG"
    tell application "System Events" to get URL of disk item thefile
    the result is something like:
    "file://localhost/Volumes/Western%204/photos%20%3F%3F%3F/PA030012.JPG"
    %20 is the description of the space character
    %3F is the description of the question mark character
    Yvan KOENIG (from FRANCE vendredi 17 avril 2009 21:56:16)

  • Unable to edit XLSM files in SharePoint using hyperlink?

    Hi All,
    Unable to edit .xlsm files using hyperlink, please guide me.
    Thanks
    Ramanjulu Naidu N

    Hi Ramanjulu,
    Did this happen to all users?
    Did the "Read Only/Edit" dialog pop up when you click the .xlsm Name link from SharePoint 2010?
    Could you see the yellow message bar with "Edit Workbook" button when you open the .xlsm file in your Excel Application?
    You can check if the following kb article could solve yellow message bar missing problem, set "Browser File Handling" as Permissive for your web application, or update the registry for client Office application.
    Also check if the add-on "SharePoint OpenDocuments Class" is enabled in your IE 32-bit browser.
    http://support.microsoft.com/kb/2661910
    Thanks
    We are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • How do YOU organize pages, create a site map, and use hyperlinks?

    I had to get out of bed to bring this up with you all; I couldn't stop thinking about this next learning curve. It is: How shall I organize the topics I have in my website? One extreme is to have all of the topics showing in all of the nav bars at the top of all the pages. The opposite extreme is ............ I cannot truly visualize it.
    I think that the big obstacle for me is that i don't want to hide any pages so well, so slickly, that they can be found only by the most focused and persistent website visitor. I can see how some pages could be lost to a lot of casual website viewers.
    On the other hand, there are some pages that are natural groups. In my case, the U.B.R.O.L. group is that. It is made up of five people and me. I have one page for a photo slideshow which has one photo of each of us, but then I have a separate page for Nigel and his photos, a separate page for Vali and her long bio and photos, and a separate page for Helen, her short bio and her many photos.
    Tonight I tried making hierarchies using hyperlinks, so that U.B.R.O.L. shows up in the Site Menu, but Nigel, Vali, Helen, and Peggy do not show up. To get to their photos, one would have to click onto the U.B.R.O.L. group page. Once at the U.B.R.O.L. page, one can then click onto Vali's, Nigel's, and Helen's page, and then from each of their pages there are 3 hyperlinks: one to return to U.B.R.O.L., and three more hyperlinks to click onto the others who have personal pages. (Peggy does not have a personal page because she is shy and never gave me more photos or a bio of herself. She prefers anonymity.)
    But even though I put those hyperlinks on those pages, I am having an internal concept war, my friends, and a solution is not at hand.
    I am thinking of how I am going to deal with the pages made for me, my husband, and my husband and I together.
    I cannot imagine clearly how a Site Menu would look at the topmost level and much less of an idea how each page would look several levels down.
    I welcome any direction you could send my way. I would like to know how you organized your pages, how you decided which pages would not be listed in the nav bar, and what you did to/with the pages that were not listed in the nav bar.
    Would you please send me the URL of your website so that I can SEE what you are talking about? I am not good at imagining what people say; I have to see it rather than imagine it.
    Lorna in Southern California

    Lorna, mostly from reading books, Iearned the following things.
    •Don't make me think (actually the title of an excellent book on webdesign)
    •Every information should be available in at most 3 clicks
    •Tell them where they are, where they can go and where they have been.
    IMHO, iWeb lends itself fairly well for these last 2 criteria. The Navbar is a very useful tool and I suggest you do not go too far away from it.
    On my current issue of the toy theatre magazine (which is NOT a beautiful website) I wanted to go in 3 languages; English, German and Dutch. I knew i was courting disaster but one can be so ambitious. This in fact meant that I had to do 3 sites. Sites being defined as a group of pages structurally belonging to each other.
    So I made an Index/Splash page with a nice picture, a title and 3 flags. These being links to the 3 versions. (I did not want to make them think on the Splashpage).
    Clicking a flag brings the visitor to a Contents page on their version of the site. Just like the Contents page in a book. Here they can choose to go to any of the items and on each and every page of the site is a Contents button that returns them there.
    Pages are numbered in the middle of the website, and to the leftside the number of (and link to) the previous page and to the right the same for the next page.
    The current issue is number 25, ( http://www.vischmarktpapierentheater ), the previous 24 were done in Freeway and the design stems from there.
    The translation to iWeb did work well but in the end the result was disappointing mostly because I wanted some slideshows, hated the "None .Mac accounts" version and went overboard with Keynote slideshows, really ugly.
    The other problem stems from the triple language idea. This meant that I had to do either 3 versions of each slideshow, or make one version accessible for every language. This menat some convoluted linking which I will never do again.
    In short If you want to go "deep", make various sites and link each starting page to you Index/Splash, keep the starting pages of each site on the Navbar Make a Contents sidebar or something like that on each of the starting pages, and than you can go anywhere within the required 3 clicks.
    Good Luck
    Harry

  • Use hyperlink to open another page , and pass some parameters to that page

    Hi
    Thank you for reading my post.
    How i can use hyperlink to open another jsp file in a new window meanwhile pass some parameters to it.
    for example i need something like this :
    http://127.0.0.1:8080/myProj/faces/Viewmessage.jsp?messageID=10
    i can not use session bean because i must open that in a new window and use hyperlink not Action
    Thank you

    I tried the following in the equivalent of your Viewmessage (page bean):
            ExternalContext eContext = FacesContext.getCurrentInstance().getExternalContext();
            String text = "Parameters: ";
            Iterator it = eContext.getRequestParameterNames();
            Map requestParams = eContext.getRequestParameterMap();
            while (it.hasNext()) {
                String key = (String)it.next();
                String value = (String)requestParams.get(key);
                text += "; " + key + " = " + value;
            staticText1.setText(text);That works as expected when you reach that new page via a hyper link.
    The session object is also the same as in your `old' window. So be careful about synchronization!
    I hope this helps.
    -- Marco

  • Linking KN9 files together using hyperlinks, fades to black

    When linking KN9 files together using hyperlinks, I press play the document being linked to fades in, then out to a black screen and after a couple of seconds returns to the files open files on my desktop.
    I've checked all the setting and it even does it on 2 empty pages I tested with no transitions or document settings.
    If I open both document before pressing play it's OK but because I have several large files being linked together I dont want to have to open all the files before presenting to clients etc.
    Thanks!

    The History
    I reported the hyperlinking problem over a year ago when I updated Keynote from version 5.0.5 to version 5.1. According to the Apple tech that I wroked with at that time the Apple engineers had reproduced the issue and had put it on the fix list (Case 235638615). I then worked with Apple in December 2011 to test a version that supposedly fixed the problem, but did not, so Apple sent me a data logging monitor program which I ran and sent back. The Apple tech asked me to be patient as it might take awhile for the Apple engineers to fix the issue. When version 5.2 came out I reran my testing suite of presentations and found that the hyperlinking issue had still not been fixed. I have tried to contact Apple about my case since July 26th - my emails to the Apple tech with whom I worked back in December bounce back as undeliverable and he does not answer his phone (I have left messages with no replies) plus when I try to use Apple support to follow up on the case, all I get is a message to contact my Apple tech (Doh!). If Apple techs or Apple engineers watch the forums I hope they look into unresolved Case 235638615.
    The Workaround
    Hyperlinking worked fine with 5.0.5 - the .key files would load and display and did not have to be preloaded prior to runing the linked presentations. Version 5.1 through the current version 5.2 require all of the linked presentations to be preloaded prior to running them. Prior to the current version of Lion, I was able to manually run version 5.0.5 to successfully run my system of 32 presentations. The only downsides were that I could not use any transitions or animations introduced with version 5.1 and I had to force quit Keynote 5.0.5. However, when I tried that solution this month, it would not work. So I created an Automator app to load the appropriate subset of presentations for each day of the five day class and used version 5.2. Everything went okay with preloaded presentations.
    I love using Keynote and do not want to go back to PowerPoint, so I hope Apple fixes this issue. I think we have been more than patient with the Apple engineers.

  • How can we use hyperlinks in forms 9i

    How can we use hyperlinks in forms 9i..
    I looked at the sample but it appears blank.
    Will you please tell me what is the code to hyperlink display items in forms 9i.
    Thanks in advance.

    Download the 10gR2 demo zip file. Its called "hyperlink". Note that this is a demo only and may or may not work the way you want or even as we intended. No QA has been performed on this PJC.

  • Passing page_url using hyperlink

    Hi,
    I would like to pass the page_url of the show_edit_mode to other procedures that I am calling using hyperlink(anchor tag).
    This works fine if I am using hidden variables & submitting the page. But if I am passing it as an argument of the hyperlink, I am getting
    'Internal Server Error'.
    Once the '?' and '&' arguments in the page_url passed parameter is removed, there is no error.
    Any idea on how I can pass page_url across procedures using Hyperlinks..
    Any idea is welcome..
    Thanks in advance..
    Sajith

    Sajith,
    you need to encode the URL by using the utl_url package that provides public APIs for both encoding and decoding purposes.

  • Opening child report through master report using hyperlink

    HI Experts,
    I have a requirement where, I need to create a child report which will open through a master report using hyperlink.
    I have to use BIP desktop (MS word) and need to create a RTF template using XML file.
    Can you please guide me, how I can achieve this?
    Regards,
    Suhasini
    Edited by: 942451 on Jun 28, 2012 9:48 PM

    Take a look at this blog post: http://bipconsulting.blogspot.com/2010/02/drill-down-to-detail-or-another-report.html
    Thanks,
    Bipuser

  • CreateEmptyMovieClip and then use it in a scrollPane

    Hi,
    I've created a movie clip using createEmptyMovieClip at
    runtime, and now I want to use it within a scrollPane. The only
    problem being that scrollPane.contentPath doesn't like instance
    names - only linkage identifiers, urls or .swfs.
    Is there a way I can set a linkage identifier for my
    dynamically created movieClip; or another workaround? Am I missing
    something blindingly obvious?
    Thanks for any help.

    Thanks dzedward - yes, that's the problem.
    What I want to put in the scrollPane is not a swf, it's a
    dynamically created movie clip using createEmptyMovieClip. Is there
    a way to get the dynamically created movie clip into the
    scrollPane?

  • Report Navigation Using Hyperlinks to Another Report (not drill down)

    I would like 2 sample reports.  The first report would have a hyperlink to the second report.  I want to publish these in BusinessObjects Enterprise and see this functionality using the Dhtml viewer preferably using the "my infoview".
    Anyone have or know of samples for this?

    Hi,
    Go to report painter, in the report display you can see the output types.
    choose output area as Info control, Navagation control, dril down control, detail control.
    Choose HTML Templet - SAP Template
    choose Classic drilldown, choose basic list drilldown
    change all this parameters in the report then you will be getting drilldown fuctionality.
    Regards,
    Padma

  • Using Hyperlink and passing parameters

    i need to use the hyper link option on a field and when clocking this hyperlink i want to open another crystal report and passsing some parameters from the first report to the second one and using them in the second
    is it anything like this?
    "report2.rpt?ParameterName="+{report1.Field}
    thanks,
    Rami Dahabreh

    boe user,
    Try this:
    ="<a href =" + "http://webwasqwn1.ecorp.cat.com:8322/OpenDocument/opendoc/openDocument.jsp?sType=wid&sDocName=fsitem&lsSEnterItem Node Name:="Query 2.Item Node Name(If IsPromptAnswered("Enter FS Items") Then "&lsSEnterFS Items:="+URLEncode(UserResponse("Enter FS Items:"))) + Object + ""
    Have a look on this thread also:
    Linking 2 web I reports
    I'm Back

  • How to use Hyperlinks in a table

    In my JSF application, I have a table that returns a list of customers. I want to have each link pull up the customer details page with the data for the row that the user clicked on. Is there an easy way to do this?
    I have figured out how to replace a text field in a column with a hyperlink and have set it to display the correct text for each row but I have the following issues:
    1) if I try to use the current row, it is always the first row displayed, not the row the user clicked on
    2) I can construct the link url in such a way that it posts back to me with the customer Id, but then how do I obtain the information? From the request Bean?
    For example my urls on 2 rows of the table are:
    http://localhost:28080/TestApp/faces/Home.jsp?CustID=1
    http://localhost:28080/TestApp/faces/Home.jsp?CustID=2
    This is how I built the links:
    <ui:tableColumn binding="#{Home.tableColumn2}" headerText="Customer ID" id="tableColumn2" sort="customer.customer_id">
    <ui:hyperlink binding="#{Home.hlCustomer}" id="hlCustomer" target="_self"
    text="#{currentRow.value['customer.customer_id']}" url="?#{currentRow.value['customer_url']}"/>
    Any help apprechiated, as I am new at this.

    I'm not sure if this is what you want to do, but I did something similar, allowing JSC to handle everything.
        public String hyperlinkClarifyCaseNum_action() {
            // Select the current case & go to editSev1
            TableRowDataProvider rowData = (TableRowDataProvider) getBean("currentRow");
            getRequestBean1().setClarifyCaseNum((Integer)rowData.getValue("espsev1.sev1ClarifyCaseNum"));
            getRequestBean1().setSev1ID((Integer)rowData.getValue("espsev1.sev1ID"));
            return "editSev1";
        }This saves the key (sev1ID) in a session bean, then goes to the page that will allow user to edit the sev1 entry. That page retrieves the key & does the query to populate the page.
    I copied this from the JSC book available free on the website.
    Very similar to 2) above ;-)

  • Using hyperlinks in dual display mode

    I have a hyperlink to open a new keynote presentation. When working on my laptop, the hyperlink works fine. However, when I'm using an external display, the hyperlink will not work. Any suggestions?

    Sorry, I guess I wasn't as clear as I thought I was. Let's see...
    When I say it doesn't work, what I mean is that when I'm hooked up to the LCD projector and I place the curser over the hyperlink, it doesn't change from the pointer to the pointing finger and even if I try clicking on the link it will not open the other Keynote presentation that I have it linked to. The computer is set for an external display, in other words, no I do not have "mirrored" selected.
    On the other hand, if I'm just working at my computer and "play" my presentation, I'm fully able to move the curser over the link, it changes to the pointing finger and when I "click" the linked presentation opens and I'm set to go. It just doesn't make sense to me that by simply hooking up the LCD projector, the links aren't functioning.

  • Is there a way to use hyperlinks for phone numbers in keynote?

    Hey all,
    does anyone know if it is possibile to export phone numbers as hyperlinks in keynote (export format: pdf), so that my phone directly dials the number if I open the pdf and click on it. In other programs I can use "tel:+countrycodeandphonenumber" instead of the url in the hyperlink setup, but unfortunately that does not seem to work with keynote.
    Best,
    Hanna

    Keynote provides for hyperlinks to slides in the currently used presentation, other Keynote files, web pages and to launch a pre-addressed email message. All other hyperlinks are prevented. Not sure why you would want to use a slide presentation application for such a task during a slide show.

Maybe you are looking for

  • URGENT!! problems with Unix command, please help

    I am trying to use the following Unix command and I keep getting error messaages from stdError. However if I run the same command from the command line it works perfectly. For some reason when I run the command from inside the program it thinks the a

  • SET_ITEM_PROPERTY - VISIBLE ENABLE / DISABLE

    I'm quite new to Forms. I want to show or hide some items on my form depending of what the user choose in a LOV. I used the SET_ITEM_PROPERTY to enable or disable VISIBLE like this SET_ITEM_PROPERTY('SZBAIDE.SZBAIDE_ETAT_DOSSIER_CODE',VISIBLE,PROPERT

  • How to export to an Illustrator CS5 file iin CS6

    I am working on a project at school which has Illustrator CS6 Installed and my friend has CS5 on his computer, and his computer would not read a CS6 file. Is there a way to export from CS6 as a CS5 file?

  • Minor collection pauses for longer time (40 seconds to 3 minutes) - web app

    We are facing a strange issue with our Application, it is running under jboss-4.0.2 with jdk1.5.0_07 It becomes unresponsive after 1/2 an hour load test and comes back to normal within 2 to 3 minutes. The following is a sample of the GC information w

  • Transaction in a Container

    Hi, I am using the report 'RSDEMO_SPLITTER_CONTROL' to see if i can get an transaction in a part of a screen. In this example that you can see in transaction 'dwdm' - example Splitter Cointainer, we have 2 containers. I want to know if it is possible