You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Dmitry Irlyanov (JIRA)" <ji...@apache.org> on 2007/08/07 16:59:59 UTC

[jira] Created: (HARMONY-4610) [classlib][swing][html]Border and spacing attributes processing are unimplemented

[classlib][swing][html]Border and spacing attributes processing are unimplemented
---------------------------------------------------------------------------------

                 Key: HARMONY-4610
                 URL: https://issues.apache.org/jira/browse/HARMONY-4610
             Project: Harmony
          Issue Type: Bug
            Reporter: Dmitry Irlyanov
         Attachments: example.jpg, Harmony output.jpg, RI output.jpg

When one trying to draw a border for an image in html file he can add border attribute in img tag. For harmony it doesn't work

import java.net.URL;

import javax.swing.JEditorPane;
import javax.swing.JFrame;

public class Test {

    private final static URL url = Test.class.getResource("example.jpg");
    
    /**
     * @param args
     */
    public static void main(String[] args) {
        
        JEditorPane editorPane = new JEditorPane(
                "text/html",
                        "<img src=\"" + url + "\" width=100 height=100"
                        + " border=10 hspace=30 vspace=30 align=center alt=\"test\">"                        
        );
        
        JFrame frame = new JFrame("Test");
        frame.add(editorPane);
        frame.setSize(400, 300);
        frame.setVisible(true);
    }

}

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


[jira] Updated: (HARMONY-4610) [classlib][swing][html]Border and spacing attributes processing are unimplemented

Posted by "Dmitry Irlyanov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Irlyanov updated HARMONY-4610:
-------------------------------------

    Attachment: H4610-ImageView.patch

> [classlib][swing][html]Border and spacing attributes processing are unimplemented
> ---------------------------------------------------------------------------------
>
>                 Key: HARMONY-4610
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4610
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Dmitry Irlyanov
>         Attachments: example.jpg, H4610-ImageView.patch, Harmony output.jpg, RI output.jpg
>
>
> When one trying to draw a border for an image in html file one can add border attribute in img tag. For harmony it doesn't work
> import java.net.URL;
> import javax.swing.JEditorPane;
> import javax.swing.JFrame;
> public class Test {
>     private final static URL url = Test.class.getResource("example.jpg");
>     
>     /**
>      * @param args
>      */
>     public static void main(String[] args) {
>         
>         JEditorPane editorPane = new JEditorPane(
>                 "text/html",
>                         "<img src=\"" + url + "\" width=100 height=100"
>                         + " border=10 hspace=30 vspace=30 align=center alt=\"test\">"                        
>         );
>         
>         JFrame frame = new JFrame("Test");
>         frame.add(editorPane);
>         frame.setSize(400, 300);
>         frame.setVisible(true);
>     }
> }

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


[jira] Updated: (HARMONY-4610) [classlib][swing][html]Border and spacing attributes processing are unimplemented

Posted by "Dmitry Irlyanov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Irlyanov updated HARMONY-4610:
-------------------------------------

    Patch Info: [Patch Available]

> [classlib][swing][html]Border and spacing attributes processing are unimplemented
> ---------------------------------------------------------------------------------
>
>                 Key: HARMONY-4610
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4610
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Dmitry Irlyanov
>         Attachments: example.jpg, H4610-ImageView.patch, Harmony output.jpg, RI output.jpg
>
>
> When one trying to draw a border for an image in html file one can add border attribute in img tag. For harmony it doesn't work
> import java.net.URL;
> import javax.swing.JEditorPane;
> import javax.swing.JFrame;
> public class Test {
>     private final static URL url = Test.class.getResource("example.jpg");
>     
>     /**
>      * @param args
>      */
>     public static void main(String[] args) {
>         
>         JEditorPane editorPane = new JEditorPane(
>                 "text/html",
>                         "<img src=\"" + url + "\" width=100 height=100"
>                         + " border=10 hspace=30 vspace=30 align=center alt=\"test\">"                        
>         );
>         
>         JFrame frame = new JFrame("Test");
>         frame.add(editorPane);
>         frame.setSize(400, 300);
>         frame.setVisible(true);
>     }
> }

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


[jira] Commented: (HARMONY-4610) [classlib][swing][html]Border and spacing attributes processing are unimplemented

Posted by "Dmitry Irlyanov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12520229 ] 

Dmitry Irlyanov commented on HARMONY-4610:
------------------------------------------

Yes, BoxPainter is the one of possible ways to resolve this issue, but placing the description in default.css is incorrect because <img> is special tag for css and there is another issue: our css implementation understands simple selectors only.

In general the problem is wider, as you stated: in HTML every inline element can have border
I think it is the new issue to resolve.
And implementation css-specified selectors like a[href] and img:link is another issue to implement

But I think restriction html in swing is acceptable because swing itself have much more possibilities to process text.

> [classlib][swing][html]Border and spacing attributes processing are unimplemented
> ---------------------------------------------------------------------------------
>
>                 Key: HARMONY-4610
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4610
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Dmitry Irlyanov
>            Assignee: Alexey Petrenko
>         Attachments: example.jpg, H4610-ImageView.patch, Harmony output.jpg, RI output.jpg
>
>
> When one trying to draw a border for an image in html file one can add border attribute in img tag. For harmony it doesn't work
> import java.net.URL;
> import javax.swing.JEditorPane;
> import javax.swing.JFrame;
> public class Test {
>     private final static URL url = Test.class.getResource("example.jpg");
>     
>     /**
>      * @param args
>      */
>     public static void main(String[] args) {
>         
>         JEditorPane editorPane = new JEditorPane(
>                 "text/html",
>                         "<img src=\"" + url + "\" width=100 height=100"
>                         + " border=10 hspace=30 vspace=30 align=center alt=\"test\">"                        
>         );
>         
>         JFrame frame = new JFrame("Test");
>         frame.add(editorPane);
>         frame.setSize(400, 300);
>         frame.setVisible(true);
>     }
> }

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


[jira] Updated: (HARMONY-4610) [classlib][swing][html]Border and spacing attributes processing are unimplemented

Posted by "Dmitry Irlyanov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Irlyanov updated HARMONY-4610:
-------------------------------------

    Description: 
When one trying to draw a border for an image in html file one can add border attribute in img tag. For harmony it doesn't work

import java.net.URL;

import javax.swing.JEditorPane;
import javax.swing.JFrame;

public class Test {

    private final static URL url = Test.class.getResource("example.jpg");
    
    /**
     * @param args
     */
    public static void main(String[] args) {
        
        JEditorPane editorPane = new JEditorPane(
                "text/html",
                        "<img src=\"" + url + "\" width=100 height=100"
                        + " border=10 hspace=30 vspace=30 align=center alt=\"test\">"                        
        );
        
        JFrame frame = new JFrame("Test");
        frame.add(editorPane);
        frame.setSize(400, 300);
        frame.setVisible(true);
    }

}

  was:
When one trying to draw a border for an image in html file he can add border attribute in img tag. For harmony it doesn't work

import java.net.URL;

import javax.swing.JEditorPane;
import javax.swing.JFrame;

public class Test {

    private final static URL url = Test.class.getResource("example.jpg");
    
    /**
     * @param args
     */
    public static void main(String[] args) {
        
        JEditorPane editorPane = new JEditorPane(
                "text/html",
                        "<img src=\"" + url + "\" width=100 height=100"
                        + " border=10 hspace=30 vspace=30 align=center alt=\"test\">"                        
        );
        
        JFrame frame = new JFrame("Test");
        frame.add(editorPane);
        frame.setSize(400, 300);
        frame.setVisible(true);
    }

}


> [classlib][swing][html]Border and spacing attributes processing are unimplemented
> ---------------------------------------------------------------------------------
>
>                 Key: HARMONY-4610
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4610
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Dmitry Irlyanov
>         Attachments: example.jpg, Harmony output.jpg, RI output.jpg
>
>
> When one trying to draw a border for an image in html file one can add border attribute in img tag. For harmony it doesn't work
> import java.net.URL;
> import javax.swing.JEditorPane;
> import javax.swing.JFrame;
> public class Test {
>     private final static URL url = Test.class.getResource("example.jpg");
>     
>     /**
>      * @param args
>      */
>     public static void main(String[] args) {
>         
>         JEditorPane editorPane = new JEditorPane(
>                 "text/html",
>                         "<img src=\"" + url + "\" width=100 height=100"
>                         + " border=10 hspace=30 vspace=30 align=center alt=\"test\">"                        
>         );
>         
>         JFrame frame = new JFrame("Test");
>         frame.add(editorPane);
>         frame.setSize(400, 300);
>         frame.setVisible(true);
>     }
> }

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


[jira] Resolved: (HARMONY-4610) [classlib][swing][html]Border and spacing attributes processing are unimplemented

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko resolved HARMONY-4610.
--------------------------------------

    Resolution: Fixed

The patch has been applied.
Please verify.

> [classlib][swing][html]Border and spacing attributes processing are unimplemented
> ---------------------------------------------------------------------------------
>
>                 Key: HARMONY-4610
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4610
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Dmitry Irlyanov
>            Assignee: Alexey Petrenko
>         Attachments: example.jpg, H4610-ImageView.patch, Harmony output.jpg, RI output.jpg
>
>
> When one trying to draw a border for an image in html file one can add border attribute in img tag. For harmony it doesn't work
> import java.net.URL;
> import javax.swing.JEditorPane;
> import javax.swing.JFrame;
> public class Test {
>     private final static URL url = Test.class.getResource("example.jpg");
>     
>     /**
>      * @param args
>      */
>     public static void main(String[] args) {
>         
>         JEditorPane editorPane = new JEditorPane(
>                 "text/html",
>                         "<img src=\"" + url + "\" width=100 height=100"
>                         + " border=10 hspace=30 vspace=30 align=center alt=\"test\">"                        
>         );
>         
>         JFrame frame = new JFrame("Test");
>         frame.add(editorPane);
>         frame.setSize(400, 300);
>         frame.setVisible(true);
>     }
> }

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


[jira] Commented: (HARMONY-4610) [classlib][swing][html]Border and spacing attributes processing are unimplemented

Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523479 ] 

Alexey A. Ivanov commented on HARMONY-4610:
-------------------------------------------

img:link could be implemented. If I remember correctly Swing CSS parser understands such a construct but it is ignored when converting declarations to StyleSheet rules.

> [classlib][swing][html]Border and spacing attributes processing are unimplemented
> ---------------------------------------------------------------------------------
>
>                 Key: HARMONY-4610
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4610
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Dmitry Irlyanov
>            Assignee: Alexey Petrenko
>         Attachments: example.jpg, H4610-ImageView.patch, Harmony output.jpg, RI output.jpg
>
>
> When one trying to draw a border for an image in html file one can add border attribute in img tag. For harmony it doesn't work
> import java.net.URL;
> import javax.swing.JEditorPane;
> import javax.swing.JFrame;
> public class Test {
>     private final static URL url = Test.class.getResource("example.jpg");
>     
>     /**
>      * @param args
>      */
>     public static void main(String[] args) {
>         
>         JEditorPane editorPane = new JEditorPane(
>                 "text/html",
>                         "<img src=\"" + url + "\" width=100 height=100"
>                         + " border=10 hspace=30 vspace=30 align=center alt=\"test\">"                        
>         );
>         
>         JFrame frame = new JFrame("Test");
>         frame.add(editorPane);
>         frame.setSize(400, 300);
>         frame.setVisible(true);
>     }
> }

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


[jira] Updated: (HARMONY-4610) [classlib][swing][html]Border and spacing attributes processing are unimplemented

Posted by "Dmitry Irlyanov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Irlyanov updated HARMONY-4610:
-------------------------------------

    Attachment:     (was: H4610-ImageView.patch)

> [classlib][swing][html]Border and spacing attributes processing are unimplemented
> ---------------------------------------------------------------------------------
>
>                 Key: HARMONY-4610
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4610
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Dmitry Irlyanov
>            Assignee: Alexey Petrenko
>         Attachments: example.jpg, H4610-ImageView.patch, Harmony output.jpg, RI output.jpg
>
>
> When one trying to draw a border for an image in html file one can add border attribute in img tag. For harmony it doesn't work
> import java.net.URL;
> import javax.swing.JEditorPane;
> import javax.swing.JFrame;
> public class Test {
>     private final static URL url = Test.class.getResource("example.jpg");
>     
>     /**
>      * @param args
>      */
>     public static void main(String[] args) {
>         
>         JEditorPane editorPane = new JEditorPane(
>                 "text/html",
>                         "<img src=\"" + url + "\" width=100 height=100"
>                         + " border=10 hspace=30 vspace=30 align=center alt=\"test\">"                        
>         );
>         
>         JFrame frame = new JFrame("Test");
>         frame.add(editorPane);
>         frame.setSize(400, 300);
>         frame.setVisible(true);
>     }
> }

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


[jira] Commented: (HARMONY-4610) [classlib][swing][html]Border and spacing attributes processing are unimplemented

Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12520221 ] 

Alexey A. Ivanov commented on HARMONY-4610:
-------------------------------------------

It would be great to re-use the functionality of StyleSheet.BoxPainter class for painting borders for ImageView rather than implement its own.

Additionally in HTML every inline element can have border which is not implemented neither in RI nor in Harmony. So Harmony can make a step forward.

> [classlib][swing][html]Border and spacing attributes processing are unimplemented
> ---------------------------------------------------------------------------------
>
>                 Key: HARMONY-4610
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4610
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Dmitry Irlyanov
>            Assignee: Alexey Petrenko
>         Attachments: example.jpg, H4610-ImageView.patch, Harmony output.jpg, RI output.jpg
>
>
> When one trying to draw a border for an image in html file one can add border attribute in img tag. For harmony it doesn't work
> import java.net.URL;
> import javax.swing.JEditorPane;
> import javax.swing.JFrame;
> public class Test {
>     private final static URL url = Test.class.getResource("example.jpg");
>     
>     /**
>      * @param args
>      */
>     public static void main(String[] args) {
>         
>         JEditorPane editorPane = new JEditorPane(
>                 "text/html",
>                         "<img src=\"" + url + "\" width=100 height=100"
>                         + " border=10 hspace=30 vspace=30 align=center alt=\"test\">"                        
>         );
>         
>         JFrame frame = new JFrame("Test");
>         frame.add(editorPane);
>         frame.setSize(400, 300);
>         frame.setVisible(true);
>     }
> }

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


[jira] Assigned: (HARMONY-4610) [classlib][swing][html]Border and spacing attributes processing are unimplemented

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko reassigned HARMONY-4610:
----------------------------------------

    Assignee: Alexey Petrenko

> [classlib][swing][html]Border and spacing attributes processing are unimplemented
> ---------------------------------------------------------------------------------
>
>                 Key: HARMONY-4610
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4610
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Dmitry Irlyanov
>            Assignee: Alexey Petrenko
>         Attachments: example.jpg, H4610-ImageView.patch, Harmony output.jpg, RI output.jpg
>
>
> When one trying to draw a border for an image in html file one can add border attribute in img tag. For harmony it doesn't work
> import java.net.URL;
> import javax.swing.JEditorPane;
> import javax.swing.JFrame;
> public class Test {
>     private final static URL url = Test.class.getResource("example.jpg");
>     
>     /**
>      * @param args
>      */
>     public static void main(String[] args) {
>         
>         JEditorPane editorPane = new JEditorPane(
>                 "text/html",
>                         "<img src=\"" + url + "\" width=100 height=100"
>                         + " border=10 hspace=30 vspace=30 align=center alt=\"test\">"                        
>         );
>         
>         JFrame frame = new JFrame("Test");
>         frame.add(editorPane);
>         frame.setSize(400, 300);
>         frame.setVisible(true);
>     }
> }

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


[jira] Updated: (HARMONY-4610) [classlib][swing][html]Border and spacing attributes processing are unimplemented

Posted by "Dmitry Irlyanov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Irlyanov updated HARMONY-4610:
-------------------------------------

    Attachment: example.jpg

resource for test

> [classlib][swing][html]Border and spacing attributes processing are unimplemented
> ---------------------------------------------------------------------------------
>
>                 Key: HARMONY-4610
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4610
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Dmitry Irlyanov
>         Attachments: example.jpg, Harmony output.jpg, RI output.jpg
>
>
> When one trying to draw a border for an image in html file he can add border attribute in img tag. For harmony it doesn't work
> import java.net.URL;
> import javax.swing.JEditorPane;
> import javax.swing.JFrame;
> public class Test {
>     private final static URL url = Test.class.getResource("example.jpg");
>     
>     /**
>      * @param args
>      */
>     public static void main(String[] args) {
>         
>         JEditorPane editorPane = new JEditorPane(
>                 "text/html",
>                         "<img src=\"" + url + "\" width=100 height=100"
>                         + " border=10 hspace=30 vspace=30 align=center alt=\"test\">"                        
>         );
>         
>         JFrame frame = new JFrame("Test");
>         frame.add(editorPane);
>         frame.setSize(400, 300);
>         frame.setVisible(true);
>     }
> }

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


[jira] Updated: (HARMONY-4610) [classlib][swing][html]Border and spacing attributes processing are unimplemented

Posted by "Dmitry Irlyanov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Irlyanov updated HARMONY-4610:
-------------------------------------

    Attachment: Harmony output.jpg

Harmony output

> [classlib][swing][html]Border and spacing attributes processing are unimplemented
> ---------------------------------------------------------------------------------
>
>                 Key: HARMONY-4610
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4610
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Dmitry Irlyanov
>         Attachments: example.jpg, Harmony output.jpg, RI output.jpg
>
>
> When one trying to draw a border for an image in html file he can add border attribute in img tag. For harmony it doesn't work
> import java.net.URL;
> import javax.swing.JEditorPane;
> import javax.swing.JFrame;
> public class Test {
>     private final static URL url = Test.class.getResource("example.jpg");
>     
>     /**
>      * @param args
>      */
>     public static void main(String[] args) {
>         
>         JEditorPane editorPane = new JEditorPane(
>                 "text/html",
>                         "<img src=\"" + url + "\" width=100 height=100"
>                         + " border=10 hspace=30 vspace=30 align=center alt=\"test\">"                        
>         );
>         
>         JFrame frame = new JFrame("Test");
>         frame.add(editorPane);
>         frame.setSize(400, 300);
>         frame.setVisible(true);
>     }
> }

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


[jira] Updated: (HARMONY-4610) [classlib][swing][html]Border and spacing attributes processing are unimplemented

Posted by "Dmitry Irlyanov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Irlyanov updated HARMONY-4610:
-------------------------------------

    Attachment: RI output.jpg

RI output

> [classlib][swing][html]Border and spacing attributes processing are unimplemented
> ---------------------------------------------------------------------------------
>
>                 Key: HARMONY-4610
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4610
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Dmitry Irlyanov
>         Attachments: example.jpg, Harmony output.jpg, RI output.jpg
>
>
> When one trying to draw a border for an image in html file he can add border attribute in img tag. For harmony it doesn't work
> import java.net.URL;
> import javax.swing.JEditorPane;
> import javax.swing.JFrame;
> public class Test {
>     private final static URL url = Test.class.getResource("example.jpg");
>     
>     /**
>      * @param args
>      */
>     public static void main(String[] args) {
>         
>         JEditorPane editorPane = new JEditorPane(
>                 "text/html",
>                         "<img src=\"" + url + "\" width=100 height=100"
>                         + " border=10 hspace=30 vspace=30 align=center alt=\"test\">"                        
>         );
>         
>         JFrame frame = new JFrame("Test");
>         frame.add(editorPane);
>         frame.setSize(400, 300);
>         frame.setVisible(true);
>     }
> }

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


[jira] Updated: (HARMONY-4610) [classlib][swing][html]Border and spacing attributes processing are unimplemented

Posted by "Dmitry Irlyanov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Irlyanov updated HARMONY-4610:
-------------------------------------

    Attachment: H4610-ImageView.patch

The patch has been renewed

> [classlib][swing][html]Border and spacing attributes processing are unimplemented
> ---------------------------------------------------------------------------------
>
>                 Key: HARMONY-4610
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4610
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Dmitry Irlyanov
>            Assignee: Alexey Petrenko
>         Attachments: example.jpg, H4610-ImageView.patch, Harmony output.jpg, RI output.jpg
>
>
> When one trying to draw a border for an image in html file one can add border attribute in img tag. For harmony it doesn't work
> import java.net.URL;
> import javax.swing.JEditorPane;
> import javax.swing.JFrame;
> public class Test {
>     private final static URL url = Test.class.getResource("example.jpg");
>     
>     /**
>      * @param args
>      */
>     public static void main(String[] args) {
>         
>         JEditorPane editorPane = new JEditorPane(
>                 "text/html",
>                         "<img src=\"" + url + "\" width=100 height=100"
>                         + " border=10 hspace=30 vspace=30 align=center alt=\"test\">"                        
>         );
>         
>         JFrame frame = new JFrame("Test");
>         frame.add(editorPane);
>         frame.setSize(400, 300);
>         frame.setVisible(true);
>     }
> }

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