Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4730228

Can't activate IME Japanese input mode in Applet running on Java plug-in



    • Subcomponent:
    • Resolved In Build:
    • CPU:
    • OS:



        Name: pa48320 Date: 08/12/2002

        I can't activate Japanese input mode in the LWTextField that is initially
        focused on the Applet. LWTextField is a component of our AWT-based UI framework
        called EWT, it looks like a java.awt.TextField,
        and it is implemented on java.awt.Component.

        When I run an Applet with the LWTextField and set the initial
        focus to it by calling requestFocus() method,
        the cursor is set to it and I can input English letters.
        But if I try to toggle the Japanese input mode by typing (ALT)+(`) key,
        that is the typical way to toggle the Japanese IME in Windows system,
        nothing happens and the input mode is still in English mode.

        If I move a focus to another component by hitting tab key then get back
        to it, or click the LWTextField, it turns to be IME enabled.

        This problem doesn't occur when I use the appletviewer instead of
        Java plug-in.

        This problem doesn't happen when I use java.awt.TextField instead of

        Why we decided to file a bug to ask your help is because
        EWT doesn't have any code that deals with IMEs.
        EWT just relies on what Sun provides.

        We continue to work on this problem and we will
        let you know when we find anything new as soon as possible.

        [Environments on which the bug occurs]
        java version "1.3.1_04"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_04-b02)
        Java HotSpot(TM) Client VM (build 1.3.1_04-b02, mixed mode)

        Windows 2000 Japanese version
        Microsoft Windows 2000 [Version 5.00.2195]
        Build 2195: Service Pack 2

        Netscape 6.2.3 (Japanese version)
        Mozilla/5.0 (Windows; U; Windows NT 5.0; ja-JP; rv: Gecko/20020508 Netscape6/6.2.3

        IE 5.5 (Japanese version)
        version 5.50.4807.2300
        Update versions: SP2; Q321232;

        [Reproduce Procedure]
        1. Compile the testcase java source with EWT library
        2. Setup Java plug-in
        3. Access the testcase html file from browser
        4. Type (ALT) + (`) to toggle Japanese input mode

          To compile and run the testcase, you need EWT library.
        Would you please contact me? then I can send it to you.

        [Expected and Actual Results]
        If you access the html file from your browser,
        you will see the 2 text field on the browser, and
        the focus is on the left text field.
        The expected result is that you can toggle the Japanese input mode.
        But the actual result is that you can't toggle
        the Japanese input mode even if you type (ALT) + (`) key.

        [Source Code : FocusApp2.java]
        import oracle.ewt.lwAWT.lwText.LWTextField;
        import java.applet.Applet;

        public class FocusApp2
               extends Applet
          LWTextField mText1;
          LWTextField mText2;

          public void start()
            mText1 = new LWTextField("LWTextField1");
            mText2 = new LWTextField("LWTextField2");



        [Source Code : test.html]
        <HEAD><TITLE>Java Plug-in</TITLE></HEAD>

        <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
            width="1024" height="768" align="baseline"
        <PARAM NAME="code" VALUE="FocusApp2">
        <PARAM NAME="archive" VALUE="share-dbg.jar,ewt3-dbg.jar">
        <PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
            <EMBED type="application/x-java-applet;version=1.3" width="1024"
               height="768" align="baseline" code="FocusApp2" archive="share-dbg.jar,ewt3-dbg.jar"
                   No Java 2 SDK, Standard Edition v 1.3 support for APPLET!!
        (Review ID: 160161)


            Issue Links



                dmikhalksunw Denis Mikhalkin (Inactive)
                pallenba Peter Allenbach (Inactive)
                0 Vote for this issue
                1 Start watching this issue