Problem in displaying Eastern asain language characters in GUI components.

hi all,
i m getting probelm in displaying chinies & japanies charatcter on GUI,
i have my strings in xml file UTF-16 and UTF-8 formates.
problem is that i can display the character on JFrame Title, tabbedPane Titles and in Text Area too,
but i can't see these charaters on JButton, JTextField , JLabel, i can see only blocks there, that is what i tried so far.
please help me what should i do for this??

if i have to write code for this...please help me how
can i apply this font to whole my application?As I said, you can set a default value in UIManager. For example
import java.awt.*;
import javax.swing.*;
public class Fred200 extends JPanel
    private static final String jaString = "\u65e5\u672c\u8a9e\u6587\u5b57\u5217";
    static
        UIManager.put("Label.font", new Font("AR PL ShanHeiSun Uni",Font.PLAIN, 40));
    public Fred200()
        super(new BorderLayout());
        JLabel one = new JLabel(jaString);
        //one.setFont(new Font("AR PL ShanHeiSun Uni",Font.PLAIN, 40));
        JLabel two = new JLabel(jaString);
        //two.setFont(new Font("AR PL Zenkai Uni",Font.PLAIN, 40));
        add(one, BorderLayout.NORTH);
        add(two, BorderLayout.CENTER);
    public static void main(String[] args)
        JFrame frame = new JFrame(jaString);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setContentPane(new Fred200());
        frame.pack();
        frame.setVisible(true);
}Any good swing book will list the resource names.

Similar Messages

  • Problem. Does not refresh language change in ADF components

    I have three recource bundles designated to change the language in a user interface.. The problem is that not all elements get refreshed.. Where could be the problem?

    I use af:selectOneChoice component to choose the language. If i choose a language I must click a submit button which instantaneously executes a submit action which reloads the page. Problem is when browsing other pages (after changing the language) not all the elements contain chosen lang. some of them still show previous one.. the only way to cope with it is to log off or restart the application... then everything is ok.. until I change the language actually... Can this be a problem with rendering or smth? Any ideas?

  • Problem in displaying Japanese characters in SAPScripts

    Hi All,
    I am facing a strange problem in one of my SAPScripts. I have one script in both English and Japanese languages. The scripts are already existing. I had to do some minor changes in a logo window. I did them and i did not do any other changes in any of the windows.
    When the output wa s seen for the script in the Japanese version, it was looking ok displaying all hte Japanese characters in various windows. Now, during testing , in the same server, the Japanese characteres are not shown. Instead , some ' #'(hash) symb ols are getting displayed.
    How could it happen? Did any body face such problem? If so, can anybody plz help me out with the solution?
    What shud i do to get back the Japanese characters in my script again?
    Regards,
    Priya

    Priya.
    this is not an ABAP problem ask your BASIS team to set printer cofing from SPAD.dont worry its not an ABAP issue at all.
    sometime printer doesnt support special char so it need to be setting with printer.
    Amit.

  • Problem in inputting other language characters

    Hello,
    We have a problem in displaying Canadian French character in SAP Script layout. First I installed the French (Canada) - FR as input language from Control Panel and applied the language bar tool settings. Then logged into the develpoment server with FR as login language. Entered the Canada French text in a Notepad first and copied it from the notepad to SAP Script layout. Once i enter the text and save it, it says "The input field contains prohibited characters (already deleted)". And one of the character in the word is getting deleted and getting replaced by a junk character. The following is the Canadian French word which i was trying to copy and paste in SAP script layout:
    main-d'œuvre
    The SAP script layout is not recognizing the character 'œ' in the above word. It says this character is a prohibited character.
    I dont have any issue in inputting all other Canadian French alphabets/characters other than the above one particular character.
    Earlier I had worked on inputting different character sets like Japanese, Korean etc. and followed the same procedure to enter/input the other language text and had never faced this problem.

    Hi Sairam,
    I already tried using Text id created in SO10 for this purpose and there also i'm getting the same problem. Before i could save, the prohibited characters are deleted and replaced by junk characters.
    Thanks,
    Hema.

  • Problems displaying Thai characters in FTE components on Mac

    I had originally posted a question here: http://forums.adobe.com/message/4027591, but was told that this is more of a flash runtime issue.
    I am running into issues displaying Thai characters in Flex components that make use of the Flash Text Engine (FTE), specifically on Mac OSX 10.6.8 Snow Leopard.
    Here's a blurb of my compiler font managers in flex-config.xml:
    <flex-config>
            <target-player>10.2.0</target-player>
            <!-- Specifies the version of the compiled SWF -->
            <swf-version>11</swf-version>
            <compiler>
              <!-- Specifies the locales for internationalization. -->
              <locale>
                  <locale-element>en_US</locale-element>
              </locale>
              <fonts>
                  <!-- ... -->
                  <!-- Compiler font manager classes, in policy resolution order-->
                  <managers>
                      <manager-class>flash.fonts.JREFontManager</manager-class>
                      <manager-class>flash.fonts.BatikFontManager</manager-class>
                      <manager-class>flash.fonts.AFEFontManager</manager-class>
                      <manager-class>flash.fonts.CFFFontManager</manager-class>
                  </managers>
                    <!-- ... -->
                </fonts>
            </compiler>
        </flex-config>
    ...and another from flash-unicode-table.xml:
    <language-range>
        <lang>Thai</lang>
        <range>U+0E01-0E5B</range>
    </language-range>
    My flex application originally had the following defined in its stylesheet:
        Application {
            fontSize: 12px;
            fontFamily: Arial;
            font-sharpness:0;
            font-anti-alias-type:advanced;
    Thai characters render correctly in mx components such as TextField so far.  However, FTE components such as TextLine show those crappy-looking boxes as a substitution.  My initial guess was that somehow one of the compiler font managers declared in flex-config.xml was not finding the right system font to fallback to for Thai characters.  So, I ensured the system font was installed by going to System Preferences > Language and Text > Edit List.  Then I changed fontFamily to Arial, Ayuthaya.  Still was seeing the boxes of evil.
    Next I figured that perhaps the Arial font might be assigning a box for each unicode value corresponding to a Thai character.  So it was effectively overriding the Ayuthaya system font.  So I changed fontFamily once more to just Ayuthaya and this worked with one issue - Ayuthaya looks inherently different from Arial for non-thai characters.
    Here's my question - is there a less invasive way to support Thai in FTE components such that the appearance of the text is closer to the Arial font?  I would rather not embed a font because I'm constrained on SWF size.
    Oh and I'm using flash player 10.3 right now.

    OK, I asked the FTE team and got this reply: "Lucida Grande is CTS's fallback font for Thai.  This font on OS 10.7 and 10.6 are not supporting Thai anymore.  The version on 10.5 was supporting it." This means that it's our bug that we keep using Lucida Grande as fallback font even Apple dropped support Thai script with that font after 10.6. Unfortunately this bug was deferred from current development release (11.2) because of time constraint. If this support is critical for your business, can you open a bug in our public bugbase and ask as many vote as possible? In this way I may be able to convince internal team to fix this bug in next release.
    Thank you for your feedback!
    Hitomi

  • Problems in displaying chinese characters with utf-8 encoding

    Hi,
    I got problem in displaying chinese characters in my web application.
    I am creating a web application supporting both English and Chinese charaters. What I am trying to do is:
    1. storing some chinese characters via a web page (page1) into database.
    2. retrieve the chinese characters via another web page (page2) from the database.
    Once I put the Chinese characters on the webpage (page1 in step #1), it displayes well (the readable chinese characters) before I submit this page (after submit, the data will be stored into the database).
    But when I tried to display the chiese characters via page2 in step#2, I got un-readable characters displayed.
    The running configuration is: Sun Application Server (coming and with the JSC2) and MySQL server 5.0. And I setup the database server with utf8 as character-set.
    It seems like the chinese characters got messed up throught the round-trip (from page1<----via jdbc---->database<----via jdbc------>page2).
    From the database, I found the chinese characters are there. Any helps are appreciated.

    Hi,
    I am trying to insert new record.The record may contain chineese or English data.
    I did same what u specified.
    first I converted to the byte UTF8.again,I converted byte to string using 8859_1.
    the values are not storing chinese characters.
    pls suggest me.
    below is my code.
                                  ascCode = req.getParameter("asccode");
                                  countryCode = req.getParameter("countrycode");
                                  ascName      = req.getParameter("ascname");
                                  address1     = req.getParameter("ascaddress1");
                                  address2 = req.getParameter("ascaddress2");
                                  System.out.println("ASC NAME:"+ascName);
                                  System.out.println("ADDRESS1:"+address1);
                                  System.out.println("ADDRESS2:"+address2);
                                  ascC = ascCode.getBytes("UTF8");
                                  coun = countryCode.getBytes("UTF8");
                                  ascN           = ascName.getBytes("UTF8");
                                  add1 = address1.getBytes("UTF8");
                                  add2          = address2.getBytes("UTF8");
                                  System.out.println("ASC NAME:"+ascN);
                                  System.out.println("ADDRESS1:"+add1);
                                  System.out.println("ADDRESS2:"+add2);
                                  ascCode = new String(ascC,"8859_1");
                                  countryCode= new String(coun,"8859_1");
                                  ascName = new String(ascN,"8859_1");
                                  address1 = new String(add1,"8859_1");
                                  address2 = new String(add2,"8859_1");
                                  System.out.println("ASC NAME:"+ascName);
                                  System.out.println("ADDRESS1:"+address1);
                                  System.out.println("ADDRESS2:"+address2);
    thanks.

  • Problem with displaying special language symbol in charts

    Hello,
    I have problem wih displaying special symbols in czech language in charts. When I write some value into Categoryaxis or Value axis in chart designer I see the right value. Then I save the web template and present it on the web. But on the web presentation I don´t see the right value. I see the title without special czech symbols.
    I find on forum some solution for language dependent texts (using special program eg. ZHTMT_TEXT) I think that It´s not solution for me. I think that I have problem with font or code side...
    Can you give some advices?
    Thanks
    Kind regard.
    Petr

    I try to change the font but the output is not correct...
    Czech language has some special symbols a e.g. &#269;,&#345;, á.
    Thanks
    Petr

  • Problem with charsets for foreign languages

    hi
    i have a problem with a webapplication
    in my webapplication i have some code that gets data from a webpage of another webapplication. This other web application can use many foreign languages
    the problem is that those foreign languages contain some special characters, and those special chars aren't displayed the right way
    this is the code to get the data from the other webapp
    private static StringBuffer getContent(String sUrl) throws MalformedURLException, IOException  {
            StringBuffer content = new StringBuffer();
            URL url = new URL(sUrl);
            HttpURLConnection httpURLConn = (HttpURLConnection) url.openConnection();
            httpURLConn.setRequestProperty("charset", "utf-8");
            BufferedReader buffReader = new BufferedReader(new InputStreamReader(httpURLConn.getInputStream()));
            String inputLine;
            while ((inputLine = buffReader.readLine()) != null) {
                content.append("\n" + inputLine);
            return content;
        }as you see , i tried to set the encoding to UTF-8 but that did not solve the problem

    an example of those special chars
    fran�aisis displayed as
    code]
    fran��ais

  • Problem with display of Chinese, Japanese, and Korean business partner name

    Hi All,
    I'm trying to understand how to get GTS to properly display the names of the business partners that are in Chinese, Japanese, or Korean.
    I have set my SAP gui localization as follows:
    - Select the Customize Local Layout, then Options, then the |18N tab,
    and check the Activate Multibyte Function box
    - Select the Customize Local Layout, then Character Set and check
    Unicode and Simplified Chinese
    In the source R/3 system for these partners, if I set my localization to the right language, the business partner's name and address would be displayed correctly in the C/J/K character sets when I select the appropriate version in International Version of the address.
    However, in GTS these names/addresses would just appear as nonsensical characters (like "·ÉÀûÆÖÕÕÃ÷µç×Ó£¨ÉϺ££©ÓÐÏÞ¹«Ë¾").
    For example, if I do a look up of a known Chinese BP by number, in the seach results window the Description field of that BP would just be garbage, but if I put the cursor over the Description field, then the correct Chinese display (matching what is in R/3) would appear for as long as the cursor is over that field. This indicates that the data was transferred correctly from R/3 to GTS, but some how the display does not default to the right character set.
    If I select that record, the resulting detailed display would also have garbage as the Name and Address. However, here putting the cursor over the fields still do not bring up the correct character displays, and I have found no way to get the correct displays to appear.
    Does any one know of a way to get the displays to show correctly in GTS?
    And can anyone explain why putting the cursor over the Description (in the BP search results window) would let the correct display pop up?
    Greatly appreciate any insight anyone can provide.
    Thanks,
    Rex

    Hi Rex - As per message - this looks to be an issue for BC-I18-UNI and not the GTS application:
    For general information purposes - last response from BC-I18-UNI development via oss message:
    "However, from readind the message, I believe I understood the reason for
    the described effect. I assume GGT is a non-Unicode system? If yes, this
    is my idea:
    The data stored in the BP tables, e.g. for number 2555442 have been
    entred manually, probably within a session using English as logon
    language. In this case the data are stored with a Latin-1 codepage. This
    means the stored data are actually Latin-1 data, not Chinese. By
    switching the font at front-end side to Chinese, the characters appear
    as correct Chinese, although they are still Latin-1.
    It is possible that different GUI components show different effects in
    this context, as the internal font switching mechanisms behave a bit
    different in different components, e.g. control based components are
    different from normal Dynpro-based fields.
    To have correct Chinese data, you need to logon with language Chinese.
    This holds for all non-Unicode systems. On Unicode systems, the logon
    language is arbitrary."

  • SAP GUI slow down after installed Eastern Asian Language Package

    Hello,
    Have any idea what happened to SAP GUI after installed Eastern Asian Language Package on Windows XP ?
    I am working on smartforms translations in SE63 and during entering the japanese or chinese text my working area is slowing down(problems with scrolling), like missing memory or sth?
    How to overcome it?
    Regards,
    Mateusz.

    There is a known performance problem with certain SAPGUI patches in certain constellations:
    Note 1460669 - Performance problems in SAP GUI for Windows
    You may try to install the newest patches or downgrade to a patch that does not have that problem.
    Markus

  • Smartform Problem in Displaying a string data

    Hi Friends,
                     I am facing a problem while displaying a string data in smartform. Actually it is a one of the field's data in an internal table. It is a STRING field type of length 0. While populating in an internal table it is having a all the data(Around 700 char data). But while displaying in a smartform surprizingly only few characters(Around 225 char data). How can i overcome this problem?
    Regards,
    Sekhar.J

    Hi
    try this and see
    Declare some Variables of 72 char each and split that long string data of internal table text field into them and display these variables strings one below other in smartform
    var1 = itab-text+0(72)
    var2 = itab-text+72(72)
    var3 = itab-text+144(72)
    like that
    and display one below other in smartform.
    &VAR1&
    &VAR2&
    &VAR3&
    Reward points for useful Answers
    Regards
    Anji

  • How to display more than 132 characters in a smartform

    Hi Experts,
    I am reading notes/text entries by calling read_text and then passing them in a variable. I want to display the notes. But even after declaring the variable as  LINE2048, it is displaying only 255characters as output length in smartform.
    My code:
    TYPES: BEGIN OF TYP_FINAL,
             PARTNER_NO      TYPE BU_PARTNER,         "Partner No.
            OBJECT_ID       TYPE CRMT_OBJECT_ID_DB,  "Object ID
            PROCESS_TYPE    TYPE CRMT_PROCESS_TYPE,  "Activity Type
           ACTUAL_NOTE     TYPE LINE2048,           "Actual Notes
           END OF TYP_FINAL.
    data : T_FINAL           TYPE STANDARD TABLE OF TYP_FINAL,
              WA_FINAL          TYPE TYP_FINAL.
    data:  v_actualnote     TYPE LINE2048.
              CALL FUNCTION 'READ_TEXT'
                EXPORTING
                 CLIENT                        = SY-MANDT
                  ID                            = C_0002
                  LANGUAGE                      = sy-langu
                  NAME                          = l_name1
                  OBJECT                        = C_BUT000
                TABLES
                  LINES                         = t_line
               EXCEPTIONS
                 ID                            = 1
                 LANGUAGE                      = 2
              IF SY-SUBRC = 0.
               clear: v_accountnote.
               LOOP AT T_LINE INTO WA_LINE.
                 CONCATENATE v_accountnote wa_line INTO v_accountnote SEPARATED BY space.
                 clear: wa_line.
               ENDLOOP.
              wa_final-account_note = v_accountnote.
              clear: v_accountnote.
             ENDIF.
    On the smartformm side, under main window->loop->text(to display the variables).
    How to display more than 255 characters in a smartform.
    Regards,
    Sangeeta.

    why the heck would you use read_text when you want to print a text/note on a form?
    in SAP-Script we use the "INCLUDE"-Statement for this.
    and in smartforms a Text-node of type 'I'.
    you can not write all in one line and expect the system to handle this like a floating text.
    one character takes a cretain amount of space (varying for different characters and font and font sizes).
    you Page has a certain width, so where is the miracle in the thesis that on a sheet of paper with a certain width just a certain amount of characters will fit?

  • Problem in displaying Arabic Character in Paper Layout

    Hi
    I am facing problem while displaying arabic characters.
    In Web layout i am able to get it by changing the character set to ISO-8259-6.
    I had changed the NLS parameters in registry as suggested in the help. But still i am unable to get. Please can anyone send the brief steps to fix this.
    Thanks in Advance
    Ranganath

    Ranganath,
    That means subsetting is not happening. If subsetting had been successful, you would have seen in "Font properties", the type of font as Type 3 and name of the font as Fx, where x could be 0,1 etc.
    The things I suspect are: 1) your report definition has some other font associated which is not Arial.
    2) You are not specifying correctly the subset information in uifont.ali.
    Open your report in builder and check again, what font you are using to display the data. Open the report in paper layout and click on the data field and check in the font box, the font name that is displayed.
    In your uifont.ali, make sure that under [PDF:Subset] section, you specify (if you are using Arial font)
    Arial = "arial.ttf".
    If you have any other entry regarding Arial in other sections of uifont.ali, comment those for the time being by putting # before those.
    Let me know the font properties after these steps.

  • Problem in displaying arabic

    Hi
    I am having a problem in displaying arabic language. The
    problem is that sentences are not being displayed in correct
    format. That is they are displaying in the format like left to
    right languages and not in the format like right to left languages.
    Someone can suggest me what is the real problem and how can i
    solve it?
    Regards

    Hi
    Even I had the same problem initially. Have you installed the
    arabic fonts in your machines? I assume that you are working on a
    Windows machine. My suggestion would be goto {control panel ->
    Regional language and Settings -> select "Language" tab ->
    select the two checkboxes in that tab}.
    It will ask for the windows XP CD to install those fonts.
    Once its through I hope your problem will be resolved.

  • Reading a text file with foreign language characters

    I'm trying to convert foreign language characters to English looking characters.  I have code that works, but only if I hard code the string with foreign language characters and pass it to the function. I cannot figure out how to get my program to read
    in the foreign characters from my file, they come in as garbage. 
    Since the function works when I pass a hard coded string to it, I'm pretty sure the problem is the way I have the Streamreader set up, it's just not reading the characters correctly...
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim FileRdr As StreamReader = New StreamReader "m:\test\charReplace.txt", System.Text.Encoding.UTF7)
    Dim ReplaceWrtr As StreamWriter ReplaceWrtr = System.IO.File.CreateText("M:\test\CharReplaceOut.txt")
    Do While FileRdr.Peek() >= 0
    Dim currentRec As String = FileRdr.ReadLine
    removeAccent(currentRec)
    ReplaceWrtr.WriteLine(currentRec)
    Loop
    ReplaceWrtr.Close()
    End Sub
    'Replace foreign language characters with English characters
    Function removeAccent(ByVal myString As String)
    Dim A As String = "--"
    Dim B As String = "--"
    Const AccChars As String = "ŠŽšžŸÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝàáâãäåçèéêëìíîïðñòóôõöùúûüýÿ"
    Const RegChars As String = "SZszYAAAAAACEEEEIIIIDNOOOOOUUUUYaaaaaaceeeeiiiidnooooouuuuyy"
    For i As Integer = 1 To Len(AccChars)
    A = Mid(AccChars, i, 1)
    B = Mid(RegChars, i, 1)
    myString = Replace(myString, A, B)
    Next
    removeAccent = myString
    End Function
    I know that removing the accent changes the meaning of the word, but this is what the user wants so it's what I need to do. 
    Any help is greatly appreciated!! :)
    Thanks!
    Joni

    Finally got it to work.  I had to remove the first 5 characters from the replacement string (ŠŽšžŸ), couldn't find encoding that would handle these, and to be honest, I didn't really need them.  The important ones are still there, was probably
    just overkill on my part.
    UTF7 worked for the rest...
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim FileRdr As StreamReader = New StreamReader("m:\test\charReplace.txt", System.Text.Encoding.UTF7)
    Dim ReplaceWrtr As StreamWriter
    ReplaceWrtr = System.IO.File.CreateText("M:\test\CharReplaceOut.txt")
    Do While FileRdr.Peek() >= 0
    Dim currentRec As String = FileRdr.ReadLine
    removeAccent(currentRec)
    ReplaceWrtr.WriteLine(currentRec)
    Loop
    ReplaceWrtr.Close()
    End Sub
    'Replace foreign language characters with english characters
    Function removeAccent(ByRef myString As String)
    Dim A As String = "--"
    Dim B As String = "--"
    Const AccChars As String = "ÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝàáâãäåçèéêëìíîïðñòóôõöùúûüýÿ"
    Const RegChars As String = "AAAAAACEEEEIIIIDNOOOOOUUUUYaaaaaaceeeeiiiidnooooouuuuyy"
    For i As Integer = 1 To Len(AccChars)
    A = Mid(AccChars, i, 1)
    B = Mid(RegChars, i, 1)
    myString = Replace(myString, A, B)
    Next
    removeAccent = myString
    End Function
    Thanks for all your help!  Greatly appreciated :)
    -Joni

Maybe you are looking for

  • Error while attaching the document using Method add_attachment

    Hello Friends, We are getting an error while using the BCS Class Method for attaching the documents to the mail. We are using method:  add_attachment() For this I am passing the parameters: attachment_type: PDF attachment_subject: XXXXXXX att_content

  • Any way to back up FAT formatted external hard drive to Time Machine?

    I'm a photographer, and right now my library of photos is a complete mess. I have about 20 GB of photos on one external hard drive and about 30 GB on my Mac's built in hard drive. I recently purchased a new external hard drive to use with Time Machin

  • Solution for Error Message RSAODS015 during transport

    RSAODS015 "No fields were supplied No details are provided for this error message This usually means that certain InfoObjects are missing and required for the Transported Object to be activated. example: Transporting an InfoSource may be incorrectly

  • Power adapter flashing

    Hi I have a problem with my PowerBook G4. I have it for 4 years now, but this problem came out a month ago. The power adapter usually lights green when the battery is full or orange when it's charging. And mine is flashing dark orange. And i cannot t

  • Web Service Return XML

    Hello, I am trying to build a chart using web services. I have a function like this private function dataRequestResultHandler(event:ResultEvent):void { myData = event.result as String; myXMLData = new XML(myData); In the dataProvider I am calling lik