Hand cursor not displayed when mouse is over JEditorPane hyperlinks in 1.5

Java version 1.5 does not show a hand cursor when the user mouses over a hyperlink within a JEditorPane, which it did in version 1.4.x.
Create a new JEditorPane. Then set the content type (setContentType) as "text/html". Then use setText to add an html hyperlink. When the user mouses over the hyperlink, the cursor remains a pointer cursor. The cursor used to change into a hand cursor symbolizing a hyperlink.
p.s.) The hyperlink still works, the cursor just doesn't change.
Has anyone noticed this? Has it been reported as a bug? Is there a workaround?
Thanks for any/all help!

I have the same problem which I cannot seem to solve. I have a JEditorPane in a JDialog, not a JFrame, and I do not get a Hand cursor over the link. If I use a JFrame, I get the hand cursor.
Any ideas? I tried with setting the cursor by hand using
pane.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); in the ENTERED-part of a slightly more advanced hyperlink listener (gets pane in constructor). But that did not help either.
Here is the code. Check out the difference between JDialog and JFrame.
import javax.swing.*;
import javax.swing.border.*;
import java.awt.event.*;
import javax.swing.event.*;
import java.awt.*;
public class HyperLink extends JDialog
     public static void main(String[] args)
          HyperLink h = new HyperLink();
          h.setVisible(true);
     public HyperLink()
          Container cp = getContentPane();
          JEditorPane p = new JEditorPane("text/html",
                              "<html><body><a href='http://www.google.com'>Google</a></body></html>");
          p.addHyperlinkListener(new HyperlinkListener() {
               public void hyperlinkUpdate(final HyperlinkEvent he) {
                   HyperlinkEvent.EventType type = he.getEventType();
                   if (type == HyperlinkEvent.EventType.ENTERED) {
                    System.err.println("entered");
                   else if (type == HyperlinkEvent.EventType.EXITED) {
                    System.err.println("Exited");
                   else if (type == HyperlinkEvent.EventType.ACTIVATED) {
                    System.err.println("Now going to " + he.getURL());
          p.setEditable(false);
          cp.add( p );
          pack();
}

Similar Messages

  • Data point display when mouse hovers over data point in TCODE QGC1

    Hi experts,
    Just want to ask if anyone knows how to add more data in the display when your mouse hovers over the data point in the control chart of transaction QGC1?
    Because currently the control chart shows u201CSeriesu201D and u201CValueu201D, Iu2019m planning to add the inspection lot date when your mouse hovers over the data point.
    Hope to have some response regarding this and thanks in advance

    Tohatsu,
    I am not sure exactly what you are trying to do but the way you have went about doing things is not the way to code in LV. Fist off break your code into functional blocks and use these functional blocks as Subvi's. This will make your block diagram easier to read. Once you do this you can get rid of a lot of code. Also you need to learn how to use the event structure, right now the way your code is set up to use it is not correct. Have a look at the examples that ship with LV. i am not even going to begin to try to understand your code because the diagram is so large. Please do not take all of this the wrong way I am not trying to be hard on you or anything, I am just giving you some constructive criticism..
    Break your code down into functional blocks and use subvi's to perform those blocks of code.
    Have a look at the examples on how to use an event structure.
    Have a look at state machines
    You would also benefit from getting the book called Labview for everyone, third edition, jeffrey travis and james kring.
    You have a lot going on in this VI. Use the eventstucture to your advantage instead of as a hinderence like it is now. the way your code is set up now everything runs in your while loop, then it waits for an event to fire. in your case the while loop will not run again until the mouse moves over the waveform chart. You are on the right track, you just need to get some fundamental basics down and you will figure out what is going on.
    Thanks for converting the code to 8.0 for me.
    Message Edited by Jhoskins on 01-30-2008 09:17 AM
    Joe.
    "NOTHING IS EVER EASY"

  • Pictures do not display when I hover over event

    I have noticed just recently that I have 2 problems with iPhoto11 which are;
    1. When I hover over the eventy normally I see all the pictures in that event show in the event window. However on my recent events added I can no longer see the pictures in the event when I hover over the event image.
    2. Yesterday I loaded a few photos onto my iMac and created a new event. When I click into the event I not longer get an image view of the pictures in the event, i.e. the thumbnails. If I click on each picture in turn then I see the actual picture.
    Anyone seen this before and if so how do I fix it?
    Cheers

    Make a temporary, duplicate copy of your library and apply the three fixes in order as necessary.
    Fix #1
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your HD/User/Home()/ Library/Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your HD/User/Home()/Library /Caches/com.apple.iPhoto folder. 
    3 - launch iPhoto and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto.  You'll also have to reset the iPhoto's various preferences.
    Fix #2
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Select the options identified in the screenshot. 
    Fix #3
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • How to display item when mouse moves over Column value??

    Hi there
    It would be helpful if you could resolve the following :
    i) I need to display the column 'A' values of my report in a Text field when mouse moves over column B of my report.
    ii) I can able to display the same column value when mouse moves over or onclick happens. but my requirement is something like i have to display the other column value when mouse moves over.
    iii) Also i noticed that, i can able to display the item only on "Display only Item" and not on Text field.
    Any pointers to display my column value in Text field when onclick happens on my report column?
    iv) One more thing that i noticed, i can able to perform onclick or mouse over only on Editable column and not on
    non editable columns.
    Any pointers on how to achieve the same when mouse moves over Non editable column of report?
    Reference: I have created a dummy application (refer the following link), where i can able to display column value Salary on display only item using mouse move Event.
    My requirement: when i click column Ename , the text field should show salary.
    http://apex.oracle.com/pls/otn/f?p=56045:1
    User:guest
    Pswd: apex_demo
    Any pointers on this would be appreciated.
    Thanks
    Vijay

    Vijay,
    If you use Jquery then this should do the trick.
    $(document).ready(function() {
       $(".t20Report t20Standard tr").hover(function() {
         $("#P2_SALARY").attr("innerHTML",$(this).find("td:last input").attr("value"));
    {code}
    after looking at the source of your page it seems that your class for your report region is *class="t20Report t20Standard"* I am not 100% sure but you might have to correct that in the template. I am not sure how the selector will handle the space in the class name.
    Hope this helps,
    Tyson                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • My edited photos will not display when clicked on, a large triangle with exclmation comes up

    my edited photos will not display when clicked on, instead a large grey area comes up wiht a triangle /exclamation sign. 

    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library (Right Click -> Show Package Contents) allowing it to overwrite the damaged file.
    2. Download <a href="http://www.fatcatsoftware.com/iplm/"><b><u>iPhoto Library Manager</b></u></a> and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new *iPhoto 08* library:
    Note this will give you a working library with the same Events and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    In the iPhoto Preferences -> Events Uncheck the box at 'Imported Items from the Finder'
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library (Right Click -> Show Package Contents) on your desktop and find the Originals folder. From the Originals folder drag the individual Event Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption. 

  • Help topics are not displaying when using Windows 7 / IE 9 / RH10

    We recently upgraded our library from RH8 to RH10.  Also used a trial version of  RH9 in this process. Now when we compile several of the projects have issues where help topics do not display when selected in the TOC or when a link to the topic is clicked within another internal topic. It is in a continous loop in the browser (like it is trying to load).  If you right-click on the topic it displays (we are currently using this as the work-around).  Anyone else having this problem?? I saw something similiar for Windows8/IE10, but the fix does not apply here (http://forums.adobe.com/message/5138909#5138909#5138909).

    Hi,
    I (April) apologize I have been OOO and have not been able to respond to your replies.  
    Let’s start over. 
    We have an issue where help topics do not display when selected in the TOC or when a link to the topic is clicked within another internal topic. It is in a continous loop in the browser (flickering like it is trying to load). If you right-click on the topic it displays (we are currently using this as the work-around).
    We use Windows 7, IE9 and RH10 for all our projects. (Recently upgraded from RH8 to RH10)
    Turns out the problem is not isolated. I have run across it in at least one other project, which leads me to think it also occurs in others.
    "Does this only occur when the help is called from your software? Is it OK if you double click the start page?"
              No. I it ALSO occurs when launched from the start page. 
    Have you tried deleting the CPD file and reopening Rh and the project?
              Yes, without success.
    Are you using any redirects?    
              Per (Adrienne), “I am not using any redirects. I encounter this issue only in IE. If I paste the .htm into a Firefox browser, the help displays as it should.” 
              I will add that the project also displays incorrectly in Google Chrome.
    Thanks  April

  • How control can be customized so that it changes its picture when mouse moves over it

    How control can be customized so that it changes its picture when mouse moves over it. As it happens in other develpment enviroments that one can customized the look 'n feel of any thing during the mouse movement over that very thing. Moreover can any body plz tell me that how one can modify the funtionality of a control by him self (not selecting the available functionalities of controls and indicators)

    The attached LV 7.1 code uses an event configured to trigger on two controls when a "Mouse Enter" or a Mouse Leave" event occurs. Depending on the type key focus is either assigned or removed.
    Please elaborate on the Q re: customizing a control.
    Ben
    PS Do NOT change the boolean to an indicator, save, run, change to control, save run again. That is bad.
    Forgot to attachMessage Edited by Ben on 05-05-2005 09:30 PM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    MouseOver.vi ‏28 KB

  • Sharepoints not displayed when connecting via FTP

    Hi All,
    Leopard Server 10.5.8 xserve 2 G5
    I have an issue with the built in FTP server.
    All my share point are set to be shared via FTP, yet they are not displayed when users log in and access the server via FTP.
    In Server Admin, Authenticated users see: FTP Root and Share Points.
    All relevant users have access to the FTP service, in the server settings.
    ACL permissions have been set correctly for those users.
    This is *sudo sharing -l* tells me, for all share points.
    name: Archive
    path: /Volumes/External RAID/Archive
    afp: {
    ftp: {
    name: Archive
    shared: 1
    guest access: 0
    smb: {
    Is there anything that I missed?
    Thanks for you help,
    Johan
    Message was edited by: JohanDouma

    Hi,
    Sorry for the late respons.
    My config:
    1 mac mini with OSX Server leopard
    1 airport extreem
    1 external HDD LaCie
    An airport Extreme has the posibility to share a network drive. So I plugged in my HDD into the airport extreme and configured the thing.
    Than I turned to the mac mini. And started configuring my sharepoints.
    So one of my sharepoints is the external HDD.
    There are several directories on there that I want to make available thru the legacy protocol FTP.
    So by just making these sharepoints available thru FTP i expected for these sharepoint to show up in mij directories if I connect to my external IP with a FTP client like CyberDuck.
    (portforwarding and everything is not the problem, because I can make a connections and all directories show up as browseable.
    But the sharepoint I made on the network drive just show up as an bin or another kind off file I can't open.
    Everything else is browsable..
    They show up by the way in the root dir of the FTP Server as regular symbolic links.
    Thru Finder I can browse them and do everything. But as soon as i connect over the internet, lan or whatever, these symbolic links are not the access point towards the directory underneath.
    They show up with the correct name just not as an dir I can open.
    Hope this helps
    Grtz and thnx
    (typed on an iPad and not fully used to it)

  • Why is it when I add photos from iPhoto onto an iMovie project, it is not displayed when I play the movie from beginning to end, although I can see it in the (edit) format?

    Hi everyone,
    I'm just wondering why is it that when I place an image from iPhoto to an iMovie project, it is not displayed when I play it from beginning to end in fullscreen playback mode? However, when I exit it on the timeline, it is shown. All I did as drag it from the iPhoto column and place on at the beginning. I would really appreciate someones help because I really need to be able to place images onto my projects. Thanks!

    Sounds like your talking about iMovie for Mac?
    This is the iOS version, repost here:
                                                      iMovie

  • Adobe PDF files will not display when called via a link in page (FF 4.01)

    adobe PDF files will not display when called via a link in page.
    This happens when testing new web page from DWeaver CS5 - all other browser tests are OK (IE9, Safari5.05, Chrome etc.)

    [moved to the Adobe Reader (desktop) forum]

  • Included subview not displaying when run, only in editor

    Hallo -- I have a page called home.jsp that contains a subview.
    home.jsp looks like this:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%@ page language="java" contentType="text/html; charset=iso-8859-1" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <f:view>
    <html>
    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
      <title>Untitled Document</title>
    </head>
    <body>
    <h:panelGrid width="100%" columns="1">
         <h:panelGroup>
              <h:outputText value="Hello?"/>
         </h:panelGroup>
         <h:panelGroup>
              <h:panelGrid width="100%" columns="2">
                   <h:panelGroup>
                        <f:subview id="navigationPane">
                             <jsp:include page="subview/navigationPane.jspf" flush="true" />
                        </f:subview>
                   </h:panelGroup>
                   <h:panelGroup>
                        <h:outputText value="Hello-o-o-o...?"/>
                   </h:panelGroup>
              </h:panelGrid>
         </h:panelGroup>
         <h:panelGroup>
              <h:outputText value="Where's my subview?"/>
         </h:panelGroup>
    </h:panelGrid>
    </body>
    </html>
    </f:view>
    [/code:1:ccbd93ceb2]
    And the file in the subview, named [b:ccbd93ceb2]navigationPane.jspf[/b:ccbd93ceb2] in the subfolder [b:ccbd93ceb2]/subview[/b:ccbd93ceb2] looks like this:
    [code:1:ccbd93ceb2]<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <h:panelGrid width="20%" columns="1" id="navigationPane">
         <f:facet name="header">
              <h:outputText value="Navigation Pane"/>
         </f:facet>
         <h:panelGroup>
              <h:form>
                   <h:commandLink id="gotoHome" action="gotoHome" immediate="true" style="text-align: center">
                        <h:outputText value="home"/>
                   </h:commandLink>
              </h:form>
         </h:panelGroup>
         <h:panelGroup>
              <h:form>
                   <h:commandLink id="viewByCustomer" action="viewByCustomer" immediate="true" style="text-align: center">
                        <h:outputText value="view by customer"/>
                   </h:commandLink>
              </h:form>
         </h:panelGroup>
         <h:panelGroup>
              <h:form>
                   <h:commandLink id="viewByJob" action="viewByJob" immediate="true" style="text-align: center">
                        <h:outputText value="view by job"/>
                   </h:commandLink>
              </h:form>
         </h:panelGroup>
         <h:panelGroup>
              <h:form id="quickSearchBeanForm">
                   <h:panelGrid columns="3">
                        <h:outputText value="Search By Option:"/>
                        <h:panelGroup>
                             <h:selectOneMenu id="quickSearchBean_searchByOption" value="#{navigationPaneBean.quickSearchBean.searchByOption}">
                                  <f:selectItems value="#{navigationPaneBean.quickSearchBean.searchByOptions}"/>
                             </h:selectOneMenu>
                        </h:panelGroup>
                        <h:message for="quickSearchBean_searchByOption"/>
                        <h:outputText value="Search For:"/>
                        <h:inputText id="quickSearchBean_searchFor" value="#{navigationPaneBean.quickSearchBean.searchFor}"/>
                        <h:message for="quickSearchBean_searchFor"/>
                   </h:panelGrid>
              </h:form>
         </h:panelGroup>
         <h:panelGroup>
              <h:form>
                   <h:commandLink id="gotoAdmin" action="gotoAdmin" immediate="true" style="text-align: center">
                        <h:outputText value="admin"/>
                   </h:commandLink>
              </h:form>
         </h:panelGroup>
         <f:facet name="footer">
              <h:form>
                   <h:commandLink id="logout" action="logout" immediate="true" style="text-align: right">
                        <h:outputText value="logout" style="text-align: right"/>
                   </h:commandLink>
              </h:form>
         </f:facet>
    </h:panelGrid>
    [/code:1:ccbd93ceb2]
    Just to be really clear, here is the dierctory structure for the relevant files:
    [code:1:ccbd93ceb2]/web
    |
    |
    |--/pages
    |   |
    |   |
    |   |--/app
    |   |   |
    |   |   |
    |   |   |--/subview
    |   |   |   |
    |   |   |   |--navigationPane.jspf
    |   |   |
    |   |   |
    |   |   |--home.jsp
    |   |
    |   |
    |   ...
    |
    ...[/code:1:ccbd93ceb2]
    My problem is that the subview will not display when I run the web app. In the design view I can see it just fine, but when I browse to home.jsp when running, all I get is this (from view source):
    [code:1:ccbd93ceb2]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
      <title>Untitled Document</title>
    </head>
    <body>
    <table width="100%"><tbody><tr><td>Hello?</td></tr>
    <tr><td><table width="100%"><tbody><tr><td></td><td>Hello-o-o-o...?</td></tr>
    </tbody></table></td></tr>
    <tr><td>Where's my subview?</td></tr>
    </tbody></table>
    </body>
    </html>
    <script type="text/javascript">
    <!--
    function getScrolling() {
        var x = 0; var y = 0;
        if (document.body && document.body.scrollLeft && !isNaN(document.body.scrollLeft)) {
            x = document.body.scrollLeft;
        } else if (window.pageXOffset && !isNaN(window.pageXOffset)) {
            x = window.pageXOffset;
        if (document.body && document.body.scrollTop && !isNaN(document.body.scrollTop)) {
            y = document.body.scrollTop;
        } else if (window.pageYOffset && !isNaN(window.pageYOffset)) {
            y = window.pageYOffset;
        return x + "," + y;
    //-->
    </script>
    [/code:1:ccbd93ceb2]
    Does anyone have any idea why this might not be working?
    I'm really stumped!
    Cheers,
       doug.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    http://forum.java.sun.com/thread.jspa?messageID=3413354&#3413354

  • RE: my input fields does not display when running the page

    my input fields does not display when running the page
    why is that so?

    Hi,
    Can you send the HTML code for us?
    Afonso

  • After Mozilla upgraded (5 I think) my igoogle homepage does not display when I sign in.

    I upgraded to Mozilla 5, (I think, as there does not seem to be any previous versions when I check), now my personalized igoogle homepage does not display when I sign in. I need to go to options then select igoogle. All was well before. How do I reset without having to completely redo my igoogle page. I do not believe I have the 6.0 version as that is what it says I can upgrade to. I am retired and am only learning.

    Unless you have a version of iPhoto that was 9.0 or later you will not be able to download iPhoto 9.6.1 from the App Store.  To get 9.6.1 you'll need to purchase a copy of the iLife 11 disk from an online retailer like Amazon.com and then go the App Store and download 9.6.1.  Those who had an iPhoto 9.0 or later already installed have been able to get 9.6.1.  But there's been no reports from anyone who bought iLife 11 and went that route so you're at your own risk. 

  • Module borders not displaying when using Aggregator

    I am using Captivate 4.  I created a TOC for both modules in a project. Then I created an Aggregator to connect them and display both TOCs.
    The issue I am havving is that the individual modules have borders on all 4 sides, yet they do not display when using the aggregator. How do I correct this?
    Thank you.

    Lenny,
    I apologize for not having an answer to your question, but I'm envious that you've successfully configured mod_jk. I've read several different versions of how to configure this, but nothing has worked so far. I wonder if you could either point me to some correct instructions on how to integrate Apache and Tomcat so I might try to duplicate your success.
    Thanks in advance,
    Vince

  • Why do the dock items do not enlarge when I position over the icon?

    Why do the dock items do not enlarge when I position over the icon?

    Go to system preferences, click on Dock and then make sure magnification is ticked and the slider bar next to it isnt on minimun.

Maybe you are looking for