Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 16503 invoked from network); 6 Aug 2007 10:28:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Aug 2007 10:28:20 -0000 Received: (qmail 23785 invoked by uid 500); 6 Aug 2007 10:28:19 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 23767 invoked by uid 500); 6 Aug 2007 10:28:19 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 23758 invoked by uid 99); 6 Aug 2007 10:28:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2007 03:28:19 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2007 10:28:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 21118714187 for ; Mon, 6 Aug 2007 03:27:59 -0700 (PDT) Message-ID: <12243993.1186396079108.JavaMail.jira@brutus> Date: Mon, 6 Aug 2007 03:27:59 -0700 (PDT) From: "Vasily Zakharov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-4572) [classlib][swing][html] Tag
doesn't work In-Reply-To: <26218140.1185837413039.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-4572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vasily Zakharov updated HARMONY-4572: ------------------------------------- Attachment: Harmony-4572-Fix.patch A simple patch to this issue is attached. I've updated a javax/swing/text/html/default.css file to set "text-align" attribute to "center" for the
tag by default. It seems to resolve the problem. > [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 > 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.