harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitriy Matveev (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-4508) [classlib][swing] Exception when trying to create JEditorPane
Date Fri, 20 Jul 2007 12:18:06 GMT

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

Dmitriy Matveev commented on HARMONY-4508:
------------------------------------------

For reproduce this bug Test.html file for applets using must be created.

> [classlib][swing] Exception when trying to create JEditorPane
> -------------------------------------------------------------
>
>                 Key: HARMONY-4508
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4508
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Dmitriy Matveev
>
> import java.net.URL;
> import javax.swing.JEditorPane;
> class TTest{
>     TTest(){
>         URL url = null;
>             url = getClass().getResource("Test.html");
>         try{
>             new JEditorPane(url);
>         }catch(Exception e){
>             e.printStackTrace();
>         }
>     }
> }
> public class TagsTest {
>     public static void main(String[] args){
>         new TTest();
>     }
> }
> java.lang.UnsupportedOperationException: Not implemented tag: applet
> 	at javax.swing.text.html.HTMLEditorKit$HTMLFactory.create(HTMLEditorKit.java:151)
> 	at javax.swing.text.CompositeView.loadChildren(CompositeView.java:235)
> 	at javax.swing.text.FlowView$LogicalView.loadChildren(FlowView.java:259)
> 	at javax.swing.text.CompositeView.setParent(CompositeView.java:116)
> 	at javax.swing.text.FlowView.createLogicalView(FlowView.java:44)
> 	at javax.swing.text.FlowView.loadChildren(FlowView.java:393)
> 	at javax.swing.text.CompositeView.setParent(CompositeView.java:116)
> 	at javax.swing.text.html.ParagraphView.setParent(ParagraphView.java:78)
> 	at javax.swing.text.CompositeView.replace(CompositeView.java:90)
> 	at javax.swing.text.BoxView.replace(BoxView.java:150)
> 	at javax.swing.text.CompositeView.loadChildren(CompositeView.java:238)
> 	at javax.swing.text.CompositeView.setParent(CompositeView.java:116)
> 	at javax.swing.text.html.BlockView.setParent(BlockView.java:61)
> 	at javax.swing.text.CompositeView.replace(CompositeView.java:90)
> 	at javax.swing.text.BoxView.replace(BoxView.java:150)
> 	at javax.swing.text.CompositeView.loadChildren(CompositeView.java:238)
> 	at javax.swing.text.CompositeView.setParent(CompositeView.java:116)
> 	at javax.swing.text.html.BlockView.setParent(BlockView.java:61)
> 	at javax.swing.text.RootView.replace(RootView.java:266)
> 	at javax.swing.text.View.append(View.java:273)
> 	at javax.swing.plaf.basic.BasicTextUI.setView(BasicTextUI.java:864)
> 	at javax.swing.plaf.basic.BasicTextUI.modelChanged(BasicTextUI.java:767)
> 	at javax.swing.plaf.basic.BasicTextUI$Listener.propertyChange(BasicTextUI.java:293)
> 	at java.beans.PropertyChangeSupport.doFirePropertyChange(PropertyChangeSupport.java:259)
> 	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:52)
> 	at java.awt.Component.firePropertyChangeImpl(Component.java:1668)
> 	at java.awt.Component.firePropertyChange(Component.java:1682)
> 	at javax.swing.text.JTextComponent.setDocument(JTextComponent.java:143)
> 	at javax.swing.JEditorPane.setPage(JEditorPane.java:747)
> 	at javax.swing.JEditorPane.<init>(JEditorPane.java:310)
> 	at JavaTest.TTest.<init>(TagsTest.java:48)
> 	at JavaTest.TagsTest.main(TagsTest.java:59)

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