harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey A. Ivanov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-4610) [classlib][swing][html]Border and spacing attributes processing are unimplemented
Date Thu, 16 Aug 2007 12:17:31 GMT

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


Mime
View raw message