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

[jira] Assigned: (HARMONY-4696) [classlib][swing][html] JEditorPane doesn't recognize HTML by file name

     [ https://issues.apache.org/jira/browse/HARMONY-4696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison reassigned HARMONY-4696:
------------------------------------

    Assignee: Tim Ellison

> [classlib][swing][html] JEditorPane doesn't recognize HTML by file name
> -----------------------------------------------------------------------
>
>                 Key: HARMONY-4696
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4696
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Vasily Zakharov
>            Assignee: Tim Ellison
>         Attachments: Harmony-4696-Fix.patch, Harmony.jpg, RI.jpg
>
>
> The following simple test demonstrates the problem:
> import javax.swing.JFrame;
> import javax.swing.JEditorPane;
> public class Test {
>     public static void main(String argv[]) {
>         try {
>             JFrame frame = new JFrame();
>             frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
>             frame.add(new JEditorPane("file:test.html"));
>             frame.setSize(150, 100);
>             frame.setVisible(true);
>         } catch (Exception e) {
>             e.printStackTrace(System.out);
>         }
>     }
> } 
> test.html:
> normal <i>italic
> test.html contains HTML code not clearly detectable as HTML. However, this code is contained in file having .html extension, and it's enough for RI to use HTML renderer. Harmony doesn't do it. The attached screenshots demonstrate the results on RI and Harmony.

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