Re: Multiple languages in one JLabel

From: Michael Borgwardt (brazil_at_brazils-animeland.de)
Date: 11/24/04


Date: Wed, 24 Nov 2004 19:33:44 +0100

Elly wrote:

> I'm writing a utility that includes selecting and displaying files from the
> desktop.
>
> I'm running into problems since windows xp can have filenames made up of
> characters from multiple languages.
>
> How does one display such a string in a JLabel?

Just like any other string. Makes no difference to Java.

> I thought of using a large font like MS Arial Unicode, but it isn't
> distributable and the post I read mentioned that no large font exists to
> handle all of the unicode character set in a complete manner for native
> users of the various unicode characters.

I think you can assume that the default font will be able to display all
characters that a user in the default locale is likely to user. Windows
itself has the same problem, after all.



Relevant Pages

  • Re: curious font problem?
    ... Windows office with a wet noodle, ... exist in a particular font. ... try embedding it in the PPT while saving. ... the entire font or just the needed characters. ...
    (microsoft.public.powerpoint)
  • Re: curious font problem?
    ... Windows office with a wet noodle, ... exist in a particular font. ... But that it claims the characters are in a font they're not in is most ... try embedding it in the PPT while saving. ...
    (microsoft.public.powerpoint)
  • Re: Width of control characters in fixed pitch TrueType font is wrong
    ... characters in fixed pitch TrueType fonts. ... apparently drawn narrower than other characters. ... Set the Notepad font to Courier New. ... Windows is substituting another font by a process known as ...
    (microsoft.public.win32.programmer.gdi)
  • [Full-disclosure] Re: What A Click! [Internet Explorer]
    ... > tell your windows to open .HTA files in notepad. ... > (since there are more ways to cover windows with malicious lookalikes). ... >> Using custom Microsoft Agent characters it is possible to cover any kind ... including security or download dialogs. ...
    (Full-Disclosure)
  • Re: Tk 8.4.11 / Windows XP / Encoding problem
    ... Some of our clients are experiencing a weird problem on their Windows XP PCs. ... suddenly they start showing other characters instead of the correct utf-8 ... Tcl usually does proper detection of the system encoding. ...
    (comp.lang.tcl)