You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Vasily Zakharov (JIRA)" <ji...@apache.org> on 2007/08/01 01:46:53 UTC

[jira] Commented: (HARMONY-4583) [classlib][swing][html] HTML is not rendered on buttons

    [ https://issues.apache.org/jira/browse/HARMONY-4583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12516827 ] 

Vasily Zakharov commented on HARMONY-4583:
------------------------------------------

The problem occurs on Tabs also.


> [classlib][swing][html] HTML is not rendered on buttons
> -------------------------------------------------------
>
>                 Key: HARMONY-4583
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4583
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Vasily Zakharov
>         Attachments: Harmony.jpg, RI.jpg
>
>
> Here's the simple reproducer:
> import java.awt.event.*;
> import javax.swing.*;
> public class Test {
>     public static void main(String[] args) {
>         try {
>             JFrame frame = new JFrame("Test");
>             frame.addWindowListener(new WindowAdapter() {
>                 public void windowClosing(WindowEvent event){
>                     System.exit(0);
>                 }
>             });
>             JPanel panel = (JPanel) frame.getContentPane();
>             panel.add(new JButton("<html><font size=\"6\" color=\"red\"><bold>Test</bold></font></html>"));
>             frame.pack();
>             frame.setVisible(true);
>         } catch (Throwable e) {
>             System.out.print("ERROR: ");
>             e.printStackTrace(System.out);
>         }
>     }
> }
> Attached screenshots demonstrate the problem:
> RI.jpg - how it looks on RI
> Harmony.jpg - how it looks on Harmony

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