-
Enhancement
-
Resolution: Won't Fix
-
P4
-
None
-
5.0
-
x86
-
linux
FULL PRODUCT VERSION :
java version "1.5.0_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)
Java HotSpot(TM) Client VM (build 1.5.0_08-b03, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Linux titanic 2.6.16.1 #2 SMP PREEMPT Fri Mar 31 10:31:04 BST 2006 i686 unknown unknown GNU/Linux
Win2K 5.00.2195 SP 4
A DESCRIPTION OF THE PROBLEM :
When creating a new dialog with a given owner, the input method selection of the owner is not transferred to the dialog.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Install im in ext dir as per Sun's instructions.
Run example code on an English machine.
Press hotkey for input method selection and choose any pure-Java IM.
Type thai/indic/whatever into the text area.
Press the Test Me button.
Type into the Dialog's textfield.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Thai/indic/whatever input method selection should remain and text entry should continue in the previously chosen language.
ACTUAL -
The input method selection of the dialog reverts to English (or the native default)
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class InputMethodTest extends JFrame implements ActionListener {
public InputMethodTest() {
JButton testButton = new JButton("Test Me");
testButton.addActionListener(this);
setLayout(new BorderLayout());
add(new JTextArea(10, 50), BorderLayout.CENTER);
add(testButton, BorderLayout.SOUTH);
pack();
}
public void actionPerformed(ActionEvent ae) {
JDialog dialog = new JDialog(this, true);
dialog.add(new JTextField(20));
dialog.pack();
dialog.setVisible(true);
}
public static void main(String[] args) {
InputMethodTest imt = new InputMethodTest();
imt.setVisible(true);
}
}
---------- END SOURCE ----------
java version "1.5.0_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)
Java HotSpot(TM) Client VM (build 1.5.0_08-b03, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Linux titanic 2.6.16.1 #2 SMP PREEMPT Fri Mar 31 10:31:04 BST 2006 i686 unknown unknown GNU/Linux
Win2K 5.00.2195 SP 4
A DESCRIPTION OF THE PROBLEM :
When creating a new dialog with a given owner, the input method selection of the owner is not transferred to the dialog.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Install im in ext dir as per Sun's instructions.
Run example code on an English machine.
Press hotkey for input method selection and choose any pure-Java IM.
Type thai/indic/whatever into the text area.
Press the Test Me button.
Type into the Dialog's textfield.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Thai/indic/whatever input method selection should remain and text entry should continue in the previously chosen language.
ACTUAL -
The input method selection of the dialog reverts to English (or the native default)
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class InputMethodTest extends JFrame implements ActionListener {
public InputMethodTest() {
JButton testButton = new JButton("Test Me");
testButton.addActionListener(this);
setLayout(new BorderLayout());
add(new JTextArea(10, 50), BorderLayout.CENTER);
add(testButton, BorderLayout.SOUTH);
pack();
}
public void actionPerformed(ActionEvent ae) {
JDialog dialog = new JDialog(this, true);
dialog.add(new JTextField(20));
dialog.pack();
dialog.setVisible(true);
}
public static void main(String[] args) {
InputMethodTest imt = new InputMethodTest();
imt.setVisible(true);
}
}
---------- END SOURCE ----------