Hi,

I have two questions about Sun's JDK 1.2.2 for Linux.

1. java.awt.TextArea does not wrap text. And it cannot show Japanese 
   even if java.awt.List can. Why?

2. java.text.SimpleDateFormat is seemed odd.

import java.text.*;
import java.util.*;

class test {
  public static void main(String[] args) throws Exception {
    String DATE_PATTERN = "yyyy/MM/dd HH:mm:ss zzz";
    DateFormat fmt = new SimpleDateFormat(DATE_PATTERN);
    fmt.setTimeZone(TimeZone.getTimeZone("GMT"));
    String str = fmt.format(new Date());
    System.out.println(str);
    System.out.println(fmt.parse(str));
  }
}

result:

% export LANG=ja_JP.ujis
% java test
2000/03/16 07:10:27 GMT+00:00
Thu Mar 16 16:10:27 JST 2000
% export LANG=C
% java test
2000/03/16 07:11:46 GMT
Thu Mar 16 16:11:46 JST 2000

"GMT+00:00" seems not match the pattern. Is it correct?

Tomoyuki Kosimizu
[EMAIL PROTECTED]


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to