harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Varlamov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-3625) [classlib][swing] JTextPane throws java.lang.IllegalArgumentException: Model must be 'StyledDocument'
Date Thu, 12 Apr 2007 05:26:33 GMT

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

Alexey Varlamov updated HARMONY-3625:
-------------------------------------

    Component/s: App-Oriented Bug Reports

> [classlib][swing] JTextPane throws java.lang.IllegalArgumentException: Model must be
'StyledDocument'
> -----------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3625
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3625
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports, Classlib
>            Reporter: Mikhail Fursov
>
> Here is the test:
> import javax.swing.*;
> public class Test {
>     public static void main(String[] arg) throws Exception {
>         JFrame frame = new JFrame("Hello");
>         frame.resize(640,480);
>         JTextPane pane = new JTextPane();
>         frame.add(pane);
>         java.net.URL url = Test.class.getResource("Test.java");
>         pane.setPage(url);
>         
>         frame.setVisible(true);
>     }
> }
> It runs OK on SUN or BEA but fails on Harmony with 
> Uncaught exception in main:
> java.lang.IllegalArgumentException: Model must be 'StyledDocument'
>         at javax.swing.JTextPane.setDocument(JTextPane.java:72)
>         at javax.swing.JEditorPane.updateDocument(JEditorPane.java:610)
>         at javax.swing.JEditorPane.setContentType(JEditorPane.java:577)
>         at javax.swing.JEditorPane.getStream(JEditorPane.java:464)
>         at javax.swing.JEditorPane.setPage(JEditorPane.java:700)
>         at Test.main(Test.java:11)
> error.
> This problem is a blocker for JFreeChart demo when run on Harmony.

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


Mime
View raw message