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

enableInputMethod(false) does not work in the TextArea and TextField on the linux platform

    XMLWordPrintable

Details

    • b29
    • generic
    • generic

    Backports

      Description

        Reported at: http://mail.openjdk.java.net/pipermail/awt-dev/2012-February/002240.html

        Given a simple test case below[1], enableInputMethod(false) does not work. We can always invoke input method.
        [1]
        public class MyAWTTest extends JFrame {
            Component c;

            public MyAWTTest() {
            super("Single Frame --- AWT Frame");

            setLayout(new FlowLayout());

            c = new TextArea("TextArea component(No IM)");
            c.enableInputMethods(false);
            c.setPreferredSize(new Dimension(400, 100));
            add(c);

            c = new TextField("TextField component(No IM)", 52);
            c.enableInputMethods(false);
            add(c);

            setSize(850, 360);
            setVisible(true);

            setDefaultCloseOperation(EXIT_ON_CLOSE);
            }

            public static void main(String[] args) {
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                new MyAWTTest();
                }
            });

            }
        }

        Attachments

          Issue Links

            Activity

              People

                anthony Anthony Petrov (Inactive)
                anthony Anthony Petrov (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: