-
Bug
-
Resolution: Fixed
-
P4
-
1.2.0
-
1.2beta3
-
x86
-
solaris_2.5.1
-
Not verified
JDK version : 1.2X
Platform : Win 95
Locale : ja
To reproduce:
- Run the following program on non-English version of Win32 envirenment.
- After bring up the application, key in some Chinese or Japanese
- Click "Print" button, and find out it cannot print the characters just typed in.
import java.awt.*;
import java.awt.event.*;
import java.util.Locale;
import java.util.ResourceBundle;
public class PanelTextArea extends Frame
{
public PanelTextArea()
{
setTitle("Text Area");
Panel p = new Panel();
p.setLayout(new FlowLayout());
Locale myLocale = Locale.getDefault();
Button btn = new Button ("Print");
p.add(btn);
add("North",p);
setTitle("Text Area");
Panel p = new Panel();
p.setLayout(new FlowLayout());
Locale myLocale = Locale.getDefault();
Button btn = new Button ("Print");
p.add(btn);
add("North",p);
ta = new TextArea( 8,40 );
ta.setLocale(myLocale);
add("Center",ta);
btn.addMouseListener (new mListener());
addWindowListener (new wListener());
}
class wListener extends WindowAdapter
{
public void windowClosing (WindowEvent we)
{
we.getWindow().dispose();
System.exit(0);
}
};
class mListener extends MouseAdapter
{
public void mouseClicked(MouseEvent me)
{
String str = ta.getText();
System.out.println(str);
}
};
public static void main( String[] args)
{
Frame f = new PanelTextArea();
f.setSize(300,200);
f.show();
}
private TextArea ta;
}
Platform : Win 95
Locale : ja
To reproduce:
- Run the following program on non-English version of Win32 envirenment.
- After bring up the application, key in some Chinese or Japanese
- Click "Print" button, and find out it cannot print the characters just typed in.
import java.awt.*;
import java.awt.event.*;
import java.util.Locale;
import java.util.ResourceBundle;
public class PanelTextArea extends Frame
{
public PanelTextArea()
{
setTitle("Text Area");
Panel p = new Panel();
p.setLayout(new FlowLayout());
Locale myLocale = Locale.getDefault();
Button btn = new Button ("Print");
p.add(btn);
add("North",p);
setTitle("Text Area");
Panel p = new Panel();
p.setLayout(new FlowLayout());
Locale myLocale = Locale.getDefault();
Button btn = new Button ("Print");
p.add(btn);
add("North",p);
ta = new TextArea( 8,40 );
ta.setLocale(myLocale);
add("Center",ta);
btn.addMouseListener (new mListener());
addWindowListener (new wListener());
}
class wListener extends WindowAdapter
{
public void windowClosing (WindowEvent we)
{
we.getWindow().dispose();
System.exit(0);
}
};
class mListener extends MouseAdapter
{
public void mouseClicked(MouseEvent me)
{
String str = ta.getText();
System.out.println(str);
}
};
public static void main( String[] args)
{
Frame f = new PanelTextArea();
f.setSize(300,200);
f.show();
}
private TextArea ta;
}
- relates to
-
JDK-4060931 JDK1.2 TextArea does not support non-English language
-
- Closed
-
-
JDK-4103579 JDK1.2b2(win32) TextArea and TextField do not support non-English
-
- Closed
-
-
JDK-4114130 FrameTitle and TextField display incorrect mutibyte chars on Win32
-
- Closed
-