[ https://issues.apache.org/jira/browse/HARMONY-4572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12518070 ] Alexey Petrenko commented on HARMONY-4572: ------------------------------------------ Vasily, the default style sheet can be substituted by user one. And users are not required to add "text-align" attribute for center tag normally. So this patch will not work with modified css. And why it seems to you that defining tag behaviour in css which can be changed at any moment is better way then define it's behaviour in Java? > [classlib][swing][html] Tag
doesn't work > ------------------------------------------------- > > Key: HARMONY-4572 > URL: https://issues.apache.org/jira/browse/HARMONY-4572 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Vasily Zakharov > Assignee: Alexey Petrenko > Attachments: Harmony-4572-Fix.patch, Harmony.jpg, RI.jpg > > > HTML tag
is not handled properly. To reproduce, run the following test: > import java.awt.event.*; > import java.io.IOException; > import javax.swing.*; > public class Test { > public static void main(String[] args) { > try { > final JEditorPane editorPane = new JEditorPane("text/html", > "
Test
"); > editorPane.setEditable(false); > JFrame frame = new JFrame("Test"); > frame.addWindowListener(new WindowAdapter() { > public void windowClosing(WindowEvent event){ > System.exit(0); > } > }); > JPanel contentPane = (JPanel) frame.getContentPane(); > contentPane.add(editorPane); > frame.setSize(400, 300); > frame.setVisible(true); > } catch (Throwable e) { > System.out.print("ERROR: "); > e.printStackTrace(System.out); > } > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.