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:29:53 UTC

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

[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


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.


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

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

Vasily Zakharov updated HARMONY-4583:
-------------------------------------

    Attachment: RI.jpg

> [classlib][swing][html] HTML is not rendered on buttons and tabs
> ----------------------------------------------------------------
>
>                 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, 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.


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

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

Vasily Zakharov updated HARMONY-4583:
-------------------------------------

    Attachment:     (was: RI.jpg)

> [classlib][swing][html] HTML is not rendered on buttons and tabs
> ----------------------------------------------------------------
>
>                 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.


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

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

Vasily Zakharov updated HARMONY-4583:
-------------------------------------

    Attachment:     (was: Harmony.jpg)

> [classlib][swing][html] HTML is not rendered on buttons and tabs
> ----------------------------------------------------------------
>
>                 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, 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.


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

Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
    [ 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.


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

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

Vasily Zakharov updated HARMONY-4583:
-------------------------------------

    Summary: [classlib][swing][html] HTML is not rendered on buttons and tabs  (was: [classlib][swing][html] HTML is not rendered on buttons)

> [classlib][swing][html] HTML is not rendered on buttons and tabs
> ----------------------------------------------------------------
>
>                 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.


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

Posted by "Igor V. Stolyarov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517495 ] 

Igor V. Stolyarov commented on HARMONY-4583:
--------------------------------------------

Solving this issue strongly depends on implementation of BasicHTML class. That class contains methods (isHTMLString, createHTMLView) needed for implementation absent functionality.

> [classlib][swing][html] HTML is not rendered on buttons and tabs
> ----------------------------------------------------------------
>
>                 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();
>             JTabbedPane tabbedPane = new JTabbedPane();
>             tabbedPane.add("<html><font color=\"blue\"><bold>Tab</bold></font></html>",
>                     new JButton("<html><font color=\"red\"><bold>Button</bold></html>"));
>             panel.add(tabbedPane);
>             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.


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

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

Vasily Zakharov updated HARMONY-4583:
-------------------------------------

    Attachment: RI.jpg

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


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

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

Vasily Zakharov updated HARMONY-4583:
-------------------------------------

    Attachment: Harmony.jpg

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


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

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

Vasily Zakharov updated HARMONY-4583:
-------------------------------------

    Description: 
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();
            JTabbedPane tabbedPane = new JTabbedPane();
            tabbedPane.add("<html><font color=\"blue\"><bold>Tab</bold></font></html>",
                    new JButton("<html><font color=\"red\"><bold>Button</bold></html>"));
            panel.add(tabbedPane);
            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


  was:
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



> [classlib][swing][html] HTML is not rendered on buttons and tabs
> ----------------------------------------------------------------
>
>                 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();
>             JTabbedPane tabbedPane = new JTabbedPane();
>             tabbedPane.add("<html><font color=\"blue\"><bold>Tab</bold></font></html>",
>                     new JButton("<html><font color=\"red\"><bold>Button</bold></html>"));
>             panel.add(tabbedPane);
>             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.


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

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

Vasily Zakharov updated HARMONY-4583:
-------------------------------------

    Attachment: Harmony.jpg

> [classlib][swing][html] HTML is not rendered on buttons and tabs
> ----------------------------------------------------------------
>
>                 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, 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.