Chinese issues in JDK1.4.2

xiaoxiao2021-03-06  104

Sender: GoCL (small donkey), letter area: J2SE

Title: Re: JDK1.4.2 Chinese issues

Sending station: BBS Shuimu Tsinghua Station (Fri Aug 20 10:41:24 2004), within the station

Public static void setuifont () {

Javax.swing.plaf.fontuiresource fontres = new javax.swing.PLAF.

Fontuiresource (New Font ("Dialog", Font.Plain, 15);

Java.util.enuMeration Keys = uimanager.getDefaults (). Keys ();

While (keys.hasmoreElements ()) {

Object key = keys.nextelement ();

Object value = uimanager.get (key);

Value InstanceOf Javax.swing.Plaf.Fontuiresource

UIManager.put (key, fontres);

}

}

Added your program entrance.

[In the masterpiece of tonny79 (small ugly):]

: The same procedure, you can use JDK1.4.1 to run normally (although it is difficult to write),

: Using JDK1.4.2 Chinese characters all become square, don't know why?

: The prawn can help solve it, thank you.

: ...................

-

※ Source: · BBS Shuimu Tsinghua Station SMTH.org · [From: 61.48.11. *]

转载请注明原文地址:https://www.9cbs.com/read-124457.html

New Post(0)