-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
1.2.0, 1.4.0
-
generic, x86
-
generic, windows_98, windows_nt
Name: gsC80088 Date: 01/19/99
Japanese Yen currency character displayed as
backslash in Appletviewer and Java plug-in.
Netscape and IE4.0 displays it correctly.
I found the difference in font.properties.ja.
Cause is
'exclusion.sansserif.0=00b7-00b7,0100-ffff'
in font.properties.ja
It should be
'exclusion.sansserif.0=005c-005c,00b7-00b7,0100-ffff'.
[sample source]
import java.awt.Graphics;
public class PrintCurrency extends java.applet.Applet{
String message;
public void init() {
message = "\\";
resize(400,50);
}
public void paint(java.awt.Graphics g){
g.drawString(message,50,20);
}
}
(Review ID: 42665)
======================================================================
Aother customer has repored that the Yen currency is appeared as
backslash on Swing components such as JTextField.
The customer has used Java Plug-in 1.1.2_001(JRE1.1.7B, Swing1.1)
under Win32 platform.
You can easily see this behavior with the following simple Swing
applet.
import javax.swing.*;
import java.awt.*;
import java.applet.*;
public class TestField extends JApplet {
public void init() {
JTextField tf = new JTextField("JTextField");
getContentPane().setLayout(new FlowLayout());
getContentPane().add(tf);
}
}
Name: yyT116575 Date: 07/16/2001
version "1.4.0-beta"
(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)
I am using japanese win-98 os. In this environment wherever I type backslash it gives yen symbol except in the text field. I want it to show yen symbol instead of backslash in textfield also. How shall I do that.
(Review ID: 128169)
======================================================================
- duplicates
-
JDK-4833111 RFE: API to indicate preference for locale-specific fonts
-
- Resolved
-