harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-4713) [classlib][awt][swing] Far East fonts aren't displayed correctly
Date Fri, 31 Aug 2007 13:20:31 GMT
[classlib][awt][swing] Far East fonts aren't displayed correctly 

                 Key: HARMONY-4713
                 URL: https://issues.apache.org/jira/browse/HARMONY-4713
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: Windows XP, Windows Server 2003, DRLVM
            Reporter: Alexei Zakharov
            Assignee: Alexei Zakharov

By default Harmony does not display Chinese/Japanese letters correctly if they are used in
Swing UI elements - button labels, menu entry names and etc.  At least if default Windows
locale is not switched to Chinese/Japanese. 

This way, the following test displays empty squares on Harmony and valid hieroglyphs on RI:

import java.awt.*;
import javax.swing.*;

public class SwingHello extends JFrame {
    private final static String TEXT = "\u4eca\u65e5\u306f";
    protected JLabel l;

    public SwingHello() {
        setLayout(new GridBagLayout());
        setSize(100, 100);
        l = new JLabel(TEXT);

    public static void main(String[] args) {
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                SwingHello fr = new SwingHello();


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

View raw message