S�ace after hyperlink in JEditorPane

Hi all!
I am displaying an html document in a JEditorPane, which has some hyperlinks. Everything is wotking, except that all the hyperlinks have an extra space after the text which is underlined and is a part of the hyperlink.
I saw this problem in the bug database but marked as closed. However I still have this problem using jdk 1.4.1.
http://developer.java.sun.com/developer/bugParade/bugs/4303958.html
Thanks in advance for your help!

I'm sorry but I posted this by mistake. The topic is duplicated, but the other one has the subject corrected and has duke dollars assigned.

Similar Messages

  • Space after hyperlink in JEditorPane

    Hi all!
    I am displaying an html document in a JEditorPane, which has some hyperlinks. Everything is wotking, except that all the hyperlinks have an extra space after the text which is underlined and is a part of the hyperlink.
    I saw this problem in the bug database but marked as closed. However I still have this problem using jdk 1.4.1.
    http://developer.java.sun.com/developer/bugParade/bugs/4303958.html
    Thanks in advance for your help!

    I'm sorry but I posted this by mistake. The topic is duplicated, but the other one has the subject corrected and has duke dollars assigned.

  • How do i set multiple line with hyperlink in JEditorPane?

    hi all,
    i have a critical question where i have a JEditorPane component which it display the hyperlink. the problem occur when the display text of the hyperlink if it is too long, i need to truncate it into multiple line like "ABCDEF" to make it "AB<br>CD<BR>F". the hyperlink work only if the display text is not truncate to multiple line, it display nothing at all if i try to truncate them into multiple line.
    anyone? thanks and regards

    At the point you wish to change to two columns, Insert > Columns and then in the Layout Inspector, select the number of columns. After the insertion point, you will also need to insert another Column Change to return the following paragraphs to single column.
    Then Select the text to be bulleted and in the Text Inspector > List tab select the type of bullets.
    Note: This creates two columns that flow together. This can be tricky if you add any text later.
    If you wish to ensure alignment, create a two column text table and remove the lines with the Graphic Inspector > Lines > No Lines option and insert your text in each column and apply the bullets as above.
    This will create a text box - you then need to ensure it moves with the text by electing "Object Moves With Text" in the Wrpa Inspector.
    Message was edited by: bwfromspring hill

  • Local hyperlink in JEditorPane

    I set a HTML page from String variable to JEditorPane. I;ve got som hyperlinks to this page like
    <A NAME="AAAAA">
    Link
    I need to handle such a link. I set editable to false and implemented hyperlink listener, but event returns null URL when calling getURL() and I do not know how to handle this links. Can anyone help ??? I want to navigate through fragment of this page.

    If you don't want to have to fool around with the HyperlinkListener, just add the normal <BASE> tag to your HTML file. The <BASE> tag has the following syntax:
    <BASE HREF="baseURL" TARGET="WindowName" >
    The TARGET portion is optional!
    Theoretically, the JEditorPane should be smart enough to look for the link from the same place where the original HTML file is loaded from but apparently there is a bug somewhere that prevents it from doing that.
    ;o)
    V.V.

  • 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.

  • Hyperlink in JEditorPane URGENT

    I have encountered a problem regarding showing the html in JEditorPane(written under JApplet), since in the html code, there are some hyperlink which link to other html page. I can't link those page. Since I am not directly read the html from a file. I am passing those html code from the data I get from cgi and directly to JEditorPane. Anyone please help me solve this problem?
    Thank you..

    If you don't want to have to fool around with the HyperlinkListener, just add the normal <BASE> tag to your HTML file. The <BASE> tag has the following syntax:
    <BASE HREF="baseURL" TARGET="WindowName" >
    The TARGET portion is optional!
    Theoretically, the JEditorPane should be smart enough to look for the link from the same place where the original HTML file is loaded from but apparently there is a bug somewhere that prevents it from doing that.
    ;o)
    V.V.

  • Cannot Telnet back into standby ACE after upgrading to V4(2.1)

    I am in the process of upgrading from v3.2.5 to v4.2.1, i have been follwing the upgrade/downgrade guide forv4(2.0) for my redunanant pair of ACE 4710.
    everything ok, following procedure after the standby is reloaded and comes up to standby-warm, Iget the license incompatabilty message on the primary.
    but I cannot telnet back into the standby, i can ping it ok though.
    I am loathe to go any further, and do the 'ft Switchover all' and reload the primary incase I cannot telnet back into the primary when it comes back up.
    Is this a known problem? whats the fix?

    Hi, I have a similar problem, when I want to telnet to the ACE sometimes does not work, can you tell me how can I give to the admin context more resources?

  • URL filtering ACE after description of SSL traffic

    We currently have a Cisco CSS11501 which we have configured with SSL offloading.
    We offload the SSL traffic and after description of the ssl traffic we perform URL filtering.
    Can the Ace 4710 Appliance do the same?
    I have attached the current configuration of the css.
    Regards,
    Richard

    With the below config
    Traffic matching 10.10.10.10:443 will be SSL offloaded and then
    will be loadbalanced using rservers in Serverfarm "APP1-SFARM" if
    the request includes "/matchthis".
    ssl-proxy service APP1-SSL-PROXY
    key default-key.pem
    cert default-cert.pem
    class-map match-all APP1-443-VIP
    2 match virtual-address 10.10.10.10 tcp eq https
    class-map type http loadbalance match-any APP1-URLMAP
    2 match http url /matchthis.*
    policy-map type loadbalance first-match APP1-Policy
    class APP1-URLMAP
    serverfarm APP1-SFARM
    policy-map multi-match VIPS-VLAN79
    class APP1-443-VIP
    loadbalance vip inservice
    loadbalance vip icmp-reply active
    loadbalance policy APP1-Policy
    ssl-proxy server APP1-SSL-PROXY
    HTH
    Syed iftekhar Ahmed

  • 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();
    }

  • Local HyperLinks in JEditorPane....

    Hello,
    I am having a JEditorPane with contents as HTML file.. HTML file has many local links [ <a href=#100> </a> .... < a name=100></a> ]. EditorPane setEditable() is false. I have implemented HyperlinkListener to JEditorPane... but evt.getURL() returns "null" value when evt.getEventType() == HyperlinkEvent.EventType.ACTIVATED. So JEditorPane.setPage(URL) is not working...
    evt.getDescription() return value as "#100". I am using JDK1.3.1. How can I solve this problem ?
    thanks,
    reji

    You have to set ID attribute instead of name for destination tag.
    Try this
    best regards
    Stas
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.text.*;
    import javax.swing.text.html.*;
    import javax.swing.event.*;
    public class Test
    JFrame frame;
    JEditorPane ta;
    public static void main(String args[])
    new Test();
    public Test()
    frame = new JFrame();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    ta = new JEditorPane();
    ta.setEditorKit(new HTMLEditorKit());
    ta.setEditable(false);
    HyperlinkListener lst=new HyperlinkListener() {
    public void hyperlinkUpdate(HyperlinkEvent e) {
    if (e.getEventType()==HyperlinkEvent.EventType.ACTIVATED) {
    String descr=e.getDescription();
    if (descr.length()>0) {
    descr=descr.substring(1);
    HTMLDocument doc=(HTMLDocument)ta.getDocument();
    Element text=doc.getElement(descr);
    ta.setCaretPosition(text.getStartOffset());
    ta.addHyperlinkListener(lst);
    ta.setText("<HTML><BODY><A HREF=#100>test</A><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><A href='' ID=100>100</A></BODY></HTML>");
    JScrollPane scroll=new JScrollPane(ta);
    frame.getContentPane().setLayout(new BorderLayout());
    frame.getContentPane().add(scroll,BorderLayout.CENTER);
    frame.setSize(300,200);
    frame.setVisible(true);

  • Hyperlink and JEditorPane again

    Hi there,
    i know this has been handled a few times but that doesn�t helped me much...
    so i ask it again.
    i want to write a really basic HyperlinkListener, but it does not work.
    heres my code
    HyperlinkListener myListener = new HyperlinkListener()
      public void hyperlinkUpdate(HyperlinkEvent he)
        try
          if(he.getEventType() == HyperlinkEvent.EventType.ACTIVATED)
            editorPane.setPage(he.getURL() );
        catch(IOException ioe)
          System.out.println(ioe);
          ioe.printStackTrace();
    };why does it not work?
    theres no exception, if there would be one i would see in System.out...
    any ideas?
    thx anyway
    cu Errraddicator

    HyperlinkListener works on read-only JEditorPane's.
    Look at the documentation: setEditable(false) has to be set.

  • Slide advance failing on PowerPoint after hyperlink

    I suspect this issue is related to this thread about PowerPoint freezing:
    https://discussions.apple.com/thread/4804874?start=0&tstart=0
    Like many, I had the above issue and resolved it using the ‘reinstall Office and hold off on update 14.3.2’ method.  However, now I have encountered another interesting and equally frustrating issue, which I suspect maybe related to how Microsoft Office and OSX talk to each other about resource sharing. 
    The Scenario:
    I have a PowerPoint presentation (lets call it PP1) with read only content.  It has a slide with a hyperlink to another PowerPoint presentation, which is editable (say PP2).  In presentation mode the normal operation should be that slides in PP1 advance, using a presenter, mouse, trackpad or the keyboard.  On arriving at the slide with the hyperlink, clicking on the link should launch PP2.  At the conclusion of the slides in PP2 or pressing escape, the presentation should return to the launch point in PP1.  From here the presentation advance should continue in PP1 as though nothing happens.
    This was certainly the process in the past (pre the 14.3.2 upgrade issue).
    The Problem:
    What actually happens is all works well in PP1.  PP2 launches correctly and runs correctly via the hyperlink and also returns correctly to the point of origin.  However the only way to advance PP1 is to press a key and then move the mouse, or trackpad.  Each subsequent advance until the presentation is ended also requires the combination of an advance instruction and a pointer movement.  It is as though the two resources have been together with an AND function so that the only way the advance instruction is accepted is for both actions to be input to the system.
    The extent of the Problem:
    I have successfully re-created the problem using two simple PPTX files with no read only protection and no large graphics that tie up memory etc, with just a simple hyperlink. Results the same.
    I have tried on both my MacBook Pro and MacBook Air.  Results the same. 
    I have tried on a Windows machine using the same files.  No errors, all works correctly.
    I have tried downloading Parallels and loaded Windows and PowerPoint, using the same files.  No errors, all works correctly. 
    I would be very keen to hear from anyone who has had the same experience, or is willing to have a go a recreating the same conditions to see if you get the same failure.
    Of course, anyone who has a definitive solution, please share, thanks.

    Further to the above, I initially related this issue and discussion to the upgrade issue associated with version 14.3.2.  Refer to:
    https://discussions.apple.com/thread/4804874?start=0&tstart=0
    As all would be aware a new upgrade was released last week (14.3.4).  Given that I linked the freezing issue with this hyperlink failure, I thought it would be worth reporting that while 14.3.4 appears, in my experience at least, to have addressed the freezing issue, this problem remains unresolved for me.
    I will post this comment on the MS forum and re-submit feedback to Microsoft, but I would like to hear from anyone with a similar experience.

  • Problem in hyperlink

    Hello
    I have created an hyperlink in JEditorPane. Hyper link will only work after you set the editor Editable to false. I have done so. But after
    that I cannot type any text in the pane as I have set the Editable to false.
    Can you please provide me the solution how to set the Editable to true.
    m_editor.setEditable(false);
    carrot.setBlinkRate(normalBlinkRate);
    carrot.setVisible(true);
    m_editor.grabFocus();
    //Action listioner for hyper link
    m_editor.addHyperlinkListener(new HyperlinkListener(){
    public void hyperlinkUpdate(HyperlinkEvent e) {
    if(e.getEventType() == HyperlinkEvent.EventType.ACTIVATED)
    ctrl.setNodeSelection(UIDNameHash.hash.get(e.getDescription()));
    m_editor.grabFocus();
    If I set the Editable to true after the listener, the hyper link is not working.
    Thank you in adance

    If I set the Editable to true after the listener, the hyper link is not working.Thats the way it was designed. Thats the way it works in all other applications.
    If you want it to work on on an editable editoir pane you will have to write all the code yourself.

  • Hyperlinks followed by spaces causes underlining them when converted into PPTX file

    Dear All,
    when http://drifted.in/other/acrobat_slides.pdf  file is converted in Acrobat XI (Windows 7) into PPTX http://drifted.in/other/acrobat_slides.pptx, there are all space characters after hyperlinks underlined. I cannot get rid of it even when inserting the zero-width or hair space immediately after the link in the original document. Is there any workaround for this?
    Thanks, Jan

    I got similar results in AA XI. However, I ran preflight and it gave at least 2 error in the PDF. I had also tried to save it to WORD from AA 8 and got syntax errors -- leading me to the preflight check. It may simply be that the PDF is improperly formed. All I can suggest is to try to print without the links and add them in Acrobat or PPT and see if you can home in on the problem.

  • Ace - connection reset (Error 101)

    Hi, I have a problem with a Cisco ACE, after approximately an hour being in production, for all new connections
    it gives the message: connection reset. The message on any web browser is: connection reset (Error 101)
    It blocks any backend server (Apache).I get same error also when I try to connect direcly to the backend address.
    This error saturates the connections on the servers (in the log of the DB I found error connection reset)
    Without ACE all work fine, it's not a load traffic issue.
    It seems like once opened a connection the ace does not close it anymore!
    But the graphical snmp servers do not report the increase in connections, what is mistake ?
    The balancer manages two physical servers and is configured in stickyness mode
    Please find attached the configuration
    logging enable
    logging timestamp
    logging trap 4
    logging buffered 3
    logging host 172.16.0.2 udp/514 format emblem
    access-list ANY line 8 extended permit icmp any any
    access-list ANY line 16 extended permit ip any any
    probe http HTTP_PROBE1
      request method get url /index.php
      expect status 200 206
      expect status 300 307
      expect status 400 417
    probe tcp PROBE_TCP
      interval 30
    rserver host 03a.it
      ip address 172.16.0.1
      conn-limit max 50000 min 40000
      inservice
    rserver host 03b.it
      ip address 172.16.0.2
      conn-limit max 50000 min 40000
      inservice
    serverfarm host FARM_WEB
      predictor leastconns
    probe HTTP_PROBE1
      rserver 03a.it
        inservice
      rserver 03b.it
        inservice
    parameter-map type http HTTP_PARAMETER_MAP
      persistence-rebalance
    sticky http-cookie session StickyGroup1
      timeout 3600
      serverfarm FARM_WEB
    class-map type management match-all ICMP-ALLOW_CLASS
      2 match protocol icmp source-address x.x.x.x
    class-map match-all L4-WEB-IP
      2 match virtual-address x.x.x.x tcp eq www
    class-map type management match-all REMOTE_ACCESS
      2 match protocol ssh any
    policy-map type management first-match REMOTE_MGMT_ALLOW_POLICY
      class REMOTE_ACCESS
        permit
    policy-map type loadbalance http first-match WEB_L7_POLICY
      class class-default
        sticky-serverfarm StickyGroup1
        insert-http x-forward header-value "%is"
    policy-map multi-match WEB-to-vIPs
      class L4-WEB-IP
        loadbalance vip inservice
        loadbalance policy WEB_L7_POLICY
        loadbalance vip icmp-reply active
        nat dynamic 1 vlan 2541
        appl-parameter http advanced-options HTTP_PARAMETER_MAP
    interface vlan 125
      ip address
      access-group input ANY
      service-policy input REMOTE_MGMT_ALLOW_POLICY
      service-policy input WEB-to-vIPs
      no shutdown
    interface vlan 254
      ip address
      access-group input ANY
      nat-pool
      service-policy input REMOTE_MGMT_ALLOW_POLICY
      no shutdown
    At the moment this happens, the simultaneous connections (command: show conn) on the server are around 350
    the CPU load is 2%
    sticky database has approximately 24000 records.
    Log level is set to 4. But no error report.
    Do you need more info to resolve the problem?
    Thank you
    Best Regards
    N.

    Hello Nicolas,
    I wonder if you can include these values:
    parameter-map type http HTTP_PARAMETER_MAP
      case-insensitive
      persistence-rebalance
      set header-maxparse-length 65535
      set content-maxparse-length 65535
      length-exceed continue
      parsing non-strict
    I also noticed a lot of errors which might be caused also due to these denied under the #show resource usage all which may indicate you are reaching the license limits, but you should discuss it with your Cisco SE, please see below:
                                                   Allocation
            Resource         Current       Peak        Min        Max       Denied
    Context: vrack254
      conc-connections              4       1267      60000      60000          0
      mgmt-connections              2         28        748        748          0
      proxy-connections             0       1255       7864       7864          0
      xlates                        0          0       7864       7864          0
      bandwidth                   572    3824781    3740624  127490624    1416859
        throughput                 96    3712886    3740624    3740624    1416859
        mgmt-traffic rate         476     111895          0  123750000          0
      connection rate               1       1729       4500       4500          0
      ssl-connections rate          0          0        224        224          0
      mac-miss rate                 0         15         16         16          4
      inspect-conn rate             0          0       1800       1800          0
      http-comp rate                0          0    5898240    5898240          0
      to-cp-ipcp rate               0         11         36         36          0
      acl-memory                 8216      10568     744800     744800          0
      sticky                    22978      22978      31456      31456          0
      regexp                       19         23       7864       7864          0
      syslog buffer             30720      30720      30720      30720          0
      syslog rate                   0          6        750        750          0
    Can you upload the specific error which you are getting also?
    Jorge

Maybe you are looking for

  • Ipod touch (2G) stuck in "restore" mode.  Need HELP please

    I have contacted Apple support several times since Friday and was just hung up on by an extremely rude lady in customer support. I am really frustrated and just trying to get my 5 yr old little boys ipod touch working again. The situation is that our

  • Problem with namesapce Prefix in XSLT transform

    Hi all, I have the following XML as source: <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="C:\Documents and Settings\i034461\Desktop\TestConv.xslt"?> <ns0:Proxy_Mail_MT xmlns:ns0="http://abhi.com">      <Sender>A</Sende

  • Images not shown correctly i addon store

    I Have a questions regarding the Adobe® Exchange Producer Portal. If this is not the correct forum, please do direct me to the correct channel. Images not showing correctly on the product page in the addons store. See page https://creative.adobe.com/

  • How do I launch quicktime player on Mac Book Air?

    How do I launch Quicktime Player on Mac Book Air? I know that my computer came with it, and when I try to launch it, the icon tells me that it is Version 10.1. Nothing else happens. I wanted to watch some online videos which require the plug in, but

  • Duration for the cource Oracle Financials

    Hello, I would like to know about the duration of the cource Oracle Financials.I am residing in Dubai and coming to Banglore by mid week of October.I would like to know whether I can complete the cource during my vacation. Regards Santhosh [email pro