You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Dmitriy Matveev (JIRA)" <ji...@apache.org> on 2007/07/20 15:13:06 UTC

[jira] Updated: (HARMONY-4508) [classlib][swing] Exception when trying to create JEditorPane with tag
     [ https://issues.apache.org/jira/browse/HARMONY-4508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitriy Matveev updated HARMONY-4508:
-------------------------------------

    Summary: [classlib][swing] Exception when trying to create JEditorPane with <applet> tag  (was: [classlib][swing] Exception when trying to create JEditorPane)

> [classlib][swing] Exception when trying to create JEditorPane with <applet> tag
> -------------------------------------------------------------------------------
>
>                 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.