Problem with hyperlink when JEditorPane in JDialog

This following code works great:
import javax.swing.*;
import java.awt.event.ActionEvent;
* Created by IntelliJ IDEA.
* User: ilie
* Date: Mar 31, 2005
* Time: 1:21:28 PM
* To change this template use File | Settings | File Templates.
public class Test extends JFrame
    public Test() throws Exception
        JEditorPane pane = new JEditorPane( );
        pane.setEditable( false );
        pane.setContentType( "text/html");
        pane.setText( "<html><a href=''>a</a>");
        getContentPane().add( pane );
        pack();
        setVisible( true );
    public static void main( String args[]) throws Exception
        new Test();
}Now... if I change the JFrame to JDialog, when I move the mouse over the links the cursor does not change anymore to a hand.
Is this a bug? I think I do everything right.
Thank you!

This code here... also does not work :(
import javax.swing.*;
import java.awt.*;
public class Test extends JDialog
    public Test() throws Exception
        JLabel label = new JLabel( "Boo" );
        label.setCursor( Cursor.getPredefinedCursor( Cursor.HAND_CURSOR) ) ;
        getContentPane().add( label );
        pack();
        setVisible( true );
    public static void main( String args[]) throws Exception
        new Test();
}

Similar Messages

  • Problem with Hyperlink  in JEditorPane!!

    hi all!
    I have some problem.
    I create html page with hyperlink to myProgram.jar and when i open this html page in JEditorPane and click on hyperlink i have the some text but my program don't run.
    How write HyperlinkListener for run the my program and setUrl for open other html pages.
    thanks!

    In the future, Swing related questions should be posted in the Swing forum.
    But, there is no need to repost the question because you can just read the JEditorPane API to find an example of how to write a HyperlinkListener.

  • Problems with Hyperlinks when exporting to EPUB

    I've been trying to export a CS5 indd to Epub (using corEpub script -http://www.teusdejong.nl/indesign/-), but there seems to be some kind of conflict with Hyperlinks (there's 6000 of them): when they are near to a footnote reference, the text of hyperlinks (and some text surrounding it, don't know the criteria) just disappear and the reference doesn't work. Any ideas about what could be happening?
    (Sorry for my english)

    I just came across this same problem -- similar but not exactly the same.
    Text in a table does not print properly when text is superscripted.
    This is a problem since we have a French invoice that has a fair bit of superscript. I tried to work around by decreasing the font size and increasing the baseline, but this did not work.
    I'm using Pages 5.1 and Mavericks.
    Anyone have any ideas????

  • Problems with hyperlink when converting .docx to .pdf using Word 2010

    I have a Word 2010 .docx document that has a link to a web site in it. The link works fine in Word, but does not work after the conversion to PDF. I am using the Acrobat add on in Word to create the PDF.
    There is a pound sign ( # ) in the Word doc hyperlink and it is being changed to a percent sign ( % ) during the conversion to PDF. Any suggestions?

    I will report the bug. I had read about some other problems with .docx files so I saved the .docx to .doc and then converted but I got the same results.
    Thanks for the feedback.

  • Problems with hyperlinks when converting

    Hello, i use the online pdf creator. I have a document that is in microsoft publisher (originally from word) and when i convert it to PDF only a few of the links actually work, the majority of the links are just underlined words with no hyperlink. Also i have anchor tags that go from the table of contents to the actual page and none of them work.
    I checked the Enable Tagged PDF Generation and still nothing, anyone have any ideas?

    I just wanted to add that I tried an actual Microsoft Word 2003 version document in the Create Adobe PDF Online and set the tagged links so the hyperlinks and table of contents bookmark references would carry through to my 'e.book' file, however, I feel like the underdog here, as I didn't even get a PDF file, I received an error about the printer timeout exceeding the 10 minutes.  I'm not sure why it took so long to lock up (or whatever it was doing) as I have no pdf for review.   I decided to try the Post Script functionality, and found no help there as of yet, as the instructions on the Create Adobe PDF Online site do indicate where to find the Windows Drivers, the rest of the Adobe Download site area seems to not offer the same and the drivers are not to be found!   I must admit that I am also lost as to why there were some informational bits to add the PDF printer to your pc, but only for those with winxp, and 2000.  I have a pc with vista, does this site not support any of vista?  (I also have XP laptop & desktop, but they both have Adobe acrobat -- 5.0 & 7.0)
    (i know -- why am I using this online version?  Well, simply, the 5.0, nor the 7.0 would finish conversion of this simple word document with tables in it.  I've never had a problem before, and don't know what changed to make this complication, however, it seems to be getting no better.
    So -- be happy you are on the PDF file-receiving end of the Links issue -- it could be a lot worse!
      Maybe before I have to upgrade again, I'll find someone else who has experienced such a bizarre thing, and can get my document out where it needed to be 3 weeks prior to now!
          Anyone have any ideas that might help this poor, confused person who is at wits end without some expert finger pointing??  I'll take any suggestions at this point!

  • Hi, I have a problem with hyperlinks when using Acrobat 5.0, can anyone help?

    In the past, the hyperlinks have worked OK but I'm wondering if the more recent versions of the Readers will not recognise them. I am making
    PDFs from Word 2003. The hyperlinks work OK in Word - just not in the PDF. Hope someone can help.

    Thanks for that. I also had someone check it with V.8 and that didn't seem to work either..I can't seem to load an older version of the reader to test.
    Thanks for your response.

  • Having a problem with dates when I send my numbers doc to excel. dates are all out and that they have to cut and paste individual entries onto their spreadsheet. Any idea how I can prevent this

    having a problem with dates when I send my numbers doc to excel. dates are all out and that they have to cut and paste individual entries onto their spreadsheet. Any idea how I can prevent this.
    I'm using Lion on an MBP and Numbers is the latest version

    May you give more details about what is wrong with your dates ?
    M…oSoft products aren't allowed on my machines but I use LibreOffice which is a clone of Office.
    When I export from Numbers to Excel and open the result with LibreOffice, the dates are correctly treated.
    To be precise, dates after 01/01/1904 are correctly treated. dates before 01/01/1904 are exported as strings but, as it's flagged during the export process, it's not surprising.
    Yvan KOENIG (VALLAURIS, France) mardi 3 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : http://public.me.com/koenigyvan
    Please : Search for questions similar to your own before submitting them to the community
    For iWork's applications dedicated to iOS, go to :
    https://discussions.apple.com/community/app_store/iwork_for_ios

  • I have a problem with itunes when I sync the saved music and want to sync my iphone 5 ios 7.0.6 no longer passes the music thing is that just stays on "waiting for sync" and not worry please help are more than 400 songs that do not want to hear who are wi

    I have a problem with itunes when I sync the saved music and want to sync my iphone 5 ios 7.0.6 no longer passes the music thing is that just stays on "waiting for sync" and not worry please help are more than 400 songs that do not want to hear who are wi

    Plawexki wrote:
    ...  do you know if the contacts, photos, messages etc will be wiped?
    Yes... Everything will be Wiped and Replaced with what is currently on Your Mac.
    SYNCING with iTunes
    See here  >  http://support.apple.com/kb/HT1386
    From Here  >  http://www.apple.com/support/iphone/syncing/
    You may find this information of interest...
    Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha
    And See Here...
    How to Use Multiple iDevices with One Computer

  • Problems with navigation when deploy application on WebLogic 10.3

    Hi! I have problems with navigation when I deploy my application on Weblogic server 10.3. In my application I have two pages. One page where I can see the records. In this page I have button Create with action to secound jspx page. When I press this button then the first form (where I could see all records) is empty - the create operation worked, but navigation to second page not. Navigation rules is in adf task flow. In default server all works correct. Where is the problem?
    Maybe when I deploy my application I need specialy deploy adf task flow or somewhere write something? If so, then can you explain me where? Any suggestions what to do.
    Best regards!

    I have in log:
    2009.26.3 20:12:52 oracle.adfinternal.controller.faces.lifecycle.JSFLifecycleImp
    l setLifecycleContextBuilder
    WARNING: ADFc: Replacing the ADF Page Lifecycle implementation with 'oracle.adfi
    nternal.controller.application.model.JSFDataBindingLifecycleContextBuilder'.
    2009.26.3 20:12:52 oracle.adfinternal.controller.util.model.AdfmInterface initia
    lize
    INFO: ADFc: BindingContext is present, using ADFm APIs for DataControlFrames.
    2009.26.3 20:12:52 oracle.adfinternal.controller.metadata.provider.MdsMetadataRe
    sourceProvider <init>
    INFO: ADFc: Controller caching of MDS metadata resources ENABLED.
    2009.26.3 20:12:52 oracle.adf.controller.internal.metadata.MetadataService$Boots
    trap add
    INFO: ADFc: Loading bootstrap metadata from '/WEB-INF/adfc-config.xml'.
    2009.26.3 20:12:54 oracle.adf.share.security.providers.jps.CSFCredentialStore fe
    tchCredential
    WARNING: Unable to locate the credential for key AUGI in D:\bea\user_projects\do
    mains\base_domain\config\oracle.
    2009.26.3 20:12:54 oracle.adf.share.jndi.ReferenceStoreHelper throwPartialResult
    Exception
    WARNING: Incomplete connection information
    Edited by: Debuger on Mar 26, 2009 11:18 AM

  • When attempting to use Lightroom external editor program to edit a photo in Photoshop Elements 10, the photo does not open / appear on photoshop elements screen.  I don't have any problem with this when using Photoshop Elements 6 or Photoshop CS.  I'm usi

    When attempting to use Lightroom external editor program to edit a photo in Photoshop Elements 10, the photo does not open / appear on photoshop elements screen.  I don't have any problem with this when using Photoshop Elements 6 or Photoshop CS.  I'm using a Mac with Mountain Lion OS.  Any solutions?

    Adobe now hides the editor - what looks like it is not - you want the editor hidden in the support folder - see http://forums.adobe.com/message/3955558#3955558 for details
    LN

  • Hi, recently purchased macbook 13", I have problem with sound when connect to my LG Smart tv with sound system. When i change sounds effect on my sound system also LG its all go quiet didn't have this problem with my laptop. Any advise ?

    Hi, recently purchased macbook 13", I have problem with sound when connect to my LG Smart tv with sound system. When i change sounds effect on my sound system also LG its all go quiet didn't have this problem with my laptop. Any advise ?

    Some progess I see. To be honest, i would not waste your time with trying to connect using wireless.
    You are likely to get poor connections and dropping out.
    If its working using a cable, then there is no need to bother with giving me the network settings, bu see how it goes, because sometimes giving the TV a static IP address can give better results.
    There is an example of a couple of powerline adapters on the diagram below. Just ignore the network switch unless you want to connect other devices which are near to the TV.
    http://forumhelp.dyndns.info/networking/powerline3.jpg
    I will monitor the subject line of this thread, should you want to post any more information.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • I have a problem with Safari: when it opens and I go on google, it opens a page that says: PLEASE UPDATE INTERNET EXPLORERE.   What should I do?

    I have a problem with Safari: when it opens and I go on google, it opens a page that says: please update internet explorer!
    What should I do?

    It's a scam. Have a look at this thread:
    https://discussions.apple.com/thread/6058094?tstart=0

  • Problem with SDO_relate when using polygons with holes.

    I'm having a problem with sdo_relate. I'm trying to extract all elements from a point table (bdtq_batim_p) that are inside a specific polygon from another table (SDA_MUNIC_SS). The spatial index for both table have been rebuilt and the data from both table is valid.
    When I do a count on the query, I know the answer should be 1422 elements (Counted in ArcGIS). However, sdo_relate gives a smaller number of elements in the result set.
    The query :
    SELECT count(distinct t.identifiant) FROM bdtq_batim_p t, SDA_MUNIC_SS s WHERE s.mus_co_geo = '48015' and sdo_relate( t.SHAPE,s.SHAPE,'mask=anyinteract querytype=window') = 'TRUE'
    returns 282 elements. The query with mask=inside, SDO_Anyinteract() and SDO_inside() all give the same result.
    I did a test with the following query and the result is 1422 (which is the good result).
    SELECT count(distinct t.identifiant) FROM bdtq_batim_p t, SDA_MUNIC_SS s WHERE s.mus_co_geo = '48015' and SDO_WITHIN_DISTANCE( t.SHAPE,s.SHAPE,'distance=0') = 'TRUE';
    It's important to note that the polygone (from SDA_MUNIC_SS) that is used for this query have holes in it. I have the same problem with all the polygons from the SDA_MUNIC_SS table that have holes in it. For the polygon without holes, the results are the same for the 2 queries.
    My question are :
    Why are the result from the two queries different? A query with a buffer of 0 should always return the same result as a query with Anyinteract.
    Is there a known problem with SDO_RELATE when using a polygon with holes in it?
    Do you have any idea how to solve my problem.

    Since i don't have much control on the version of Oracle and Patches that we use in the system, we used a workaround that detects the polygons with holes and uses the SDO_WITHIN_DISTANCE( t.SHAPE,s.SHAPE,'distance=0') = 'TRUE' operator in those case. We saw a slight decline in performance but it now returns the right results. When the system will be patched, we'll come back to the original version and see if the problem is solved.

  • I have a problem with IDVD when I have completed a movie and set it up with menus etc I cannot operate the burn button so I cannot make a DVD.

    I have a problem with IDVD when I have completed a movie and set it up with menus etc I cannot operate the burn button so I cannot make a DVD.

    Hi
    Can You
    Go up to File Menu in iDVD - and here down to
    Save as a DiskImage
    If this works - You can burn Your DVD in another way via Disk Util tool
    Yours Bengt W

  • Strange problem with SQLPLUS when client and server on the same box

    Hi,
    I have the problem with SQLPLUS when clinet and server on the same machine.
    With client and server on the same machine i am running the command
    sqlplus -l username/password@connect_identifier as SYSDBA.
    With this command, even if you pass in wrong username or wrong password or both as wrong you can able to connect to database and execute queries.
    Once Connect_identifier is correct and trying to log in as SYSDBA ,sqlplus will log in to DB with any username and password.
    How to get rid of this behaviour. Is there any way to do this.
    I am running this command by creating a process in C#
    Edited by: user11000236 on Jun 16, 2009 10:31 AM

    user11000236 wrote:
    Thanks for the info.
    How does Oracle/SQLPLUS allows any username or password to log in to DB with SYSDBA Privillages? What is the concept behind this.?
    This is explainted in the above mentioned link:
    Operating system authentication takes precedence over password file authentication. If you meet the requirements for operating system authentication, then even if you use a password file, you will be authenticated by operating system authentication.

Maybe you are looking for

  • How do I change the email address for a gamecenter account

    My child has been using a gamecenter account linked to my main apple id. I am trying to set up family sharing and have created a new (under age 13) account for him, [email protected] I would like to give him the previous gamecenter account and create

  • 30_pin accessories?

    I have had a Timecommand audio Alarm Clock for less than a year. Will the new iPhone lightning to 30-pin adapter work with my TimeCommand? The Apple Website mentions that the lightning adapter will not work with all accessories. (I need to get a larg

  • Possible SQL Developer 3.0.04 bug

    I'm currently using SQL Developer 3.0.04, using Windows XP, and connecting to an Oracle XE 10g database. I've noticed a strange problem when I export a database and use the default "export all data from all tables" option. Basically, when the rows wi

  • Folder moving - any alternative to drop & drag

    Hi, It seems to be my day for asking basic LR3 questions. I have quite a complicated folder system that I have operated manually for quite a while and I am comfortable with it. Without going into too many details, one of the basic premises is that I

  • Want to decrease file size

    My pictures might be 400-500 KB and I want to shrink them to only 20-50 KB. I use them as images only 1.5 inches square in documents. Is there an easy way to do this- so I can drag an drop to a word doc.