src/solaris/classes/sun/awt/X11/XTextAreaPeer.java

Print this page

        

*** 103,128 **** // some initializations require that target be set even // though init(target) has not been called this.target = target; //ComponentAccessor.enableEvents(target,AWTEvent.MOUSE_WHEEL_EVENT_MASK); ! target.enableInputMethods(true); firstChangeSkipped = false; String text = ((TextArea)target).getText(); jtext = new AWTTextArea(text, this); jtext.setWrapStyleWord(true); jtext.getDocument().addDocumentListener(jtext); XToolkit.specialPeerMap.put(jtext,this); ! jtext.enableInputMethods(true); textPane = new AWTTextPane(jtext,this, target.getParent()); setBounds(x, y, width, height, SET_BOUNDS); textPane.setVisible(true); textPane.validate(); - AWTAccessor.ComponentAccessor compAccessor = AWTAccessor.getComponentAccessor(); foreground = compAccessor.getForeground(target); if (foreground == null) { foreground = SystemColor.textText; } setForeground(foreground); --- 103,127 ---- // some initializations require that target be set even // though init(target) has not been called this.target = target; //ComponentAccessor.enableEvents(target,AWTEvent.MOUSE_WHEEL_EVENT_MASK); ! AWTAccessor.ComponentAccessor compAccessor = AWTAccessor.getComponentAccessor(); firstChangeSkipped = false; String text = ((TextArea)target).getText(); jtext = new AWTTextArea(text, this); jtext.setWrapStyleWord(true); jtext.getDocument().addDocumentListener(jtext); XToolkit.specialPeerMap.put(jtext,this); ! jtext.enableInputMethods(compAccessor.areInputMethodsEnabled(target)); textPane = new AWTTextPane(jtext,this, target.getParent()); setBounds(x, y, width, height, SET_BOUNDS); textPane.setVisible(true); textPane.validate(); foreground = compAccessor.getForeground(target); if (foreground == null) { foreground = SystemColor.textText; } setForeground(foreground);