You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Vasily Zakharov (JIRA)" <ji...@apache.org> on 2007/08/03 19:53:53 UTC

[jira] Commented: (HARMONY-4574) [classlib][swing][html] Blank link text is rendered as underscore

    [ https://issues.apache.org/jira/browse/HARMONY-4574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517598 ] 

Vasily Zakharov commented on HARMONY-4574:
------------------------------------------

The patch seems to do the trick, thanks Dmitry!


> [classlib][swing][html] Blank link text is rendered as underscore
> -----------------------------------------------------------------
>
>                 Key: HARMONY-4574
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4574
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Vasily Zakharov
>            Assignee: Alexey Petrenko
>         Attachments: H4574-HTMLDocument.patch, Harmony.jpg, RI.jpg
>
>
> If the text between <a href=""> and </a> is empty or consists of spaces, RI renders nothing, and Harmony renders a clickable underscore.
> To reproduce, run the following test:
> import java.awt.event.*;
> import java.io.IOException;
> import javax.swing.*;
> public class Test {
>     public static void main(String[] args) {
>         try {
>             final JEditorPane editorPane = new JEditorPane("text/html",
>                     "<html><body>AAA<a href=\"#\"></a>BBB</body></html>");
>             editorPane.setEditable(false);
>             JFrame frame = new JFrame("Test");
>             frame.addWindowListener(new WindowAdapter() {
>                 public void windowClosing(WindowEvent event){
>                     System.exit(0);
>                 }
>             });
>             JPanel contentPane = (JPanel) frame.getContentPane();
>             contentPane.add(editorPane);
>             frame.setSize(400, 300);
>             frame.setVisible(true);
>         } catch (Throwable e) {
>             System.out.print("ERROR: ");
>             e.printStackTrace(System.out);
>         }
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.