Re: Multiple languages in one JLabel
From: Elly (Elly_at_no.where)
Date: 11/24/04
- Next message: LuckyDucky: "Re: Short Recommendations"
- Previous message: John C. Bollinger: "Re: Question on Class usage"
- In reply to: Michael Borgwardt: "Re: Multiple languages in one JLabel"
- Next in thread: VisionSet: "Re: Multiple languages in one JLabel"
- Reply: VisionSet: "Re: Multiple languages in one JLabel"
- Reply: Andrew Thompson: "Re: Multiple languages in one JLabel"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 24 Nov 2004 19:11:59 GMT
Michael Borgwardt <brazil@brazils-animeland.de> wrote in
news:30k2gbF31ni1aU1@uni-berlin.de:
> 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.
Java doesn't care about storing or using strings, but JLabel appears to
be incapable of displaying characters of different fonts within a single
label.
>
>> 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.
>
In windows, a user can create filenames of mixed characters from
different languages.
These characters are all visible together in one filename on the windows
desktop.
If my Java app tries to display this file, it is unable to show all the
characters of different languages next to each other.
You have to choose one font or another for the JLabel, leaving square
boxes for the other characters.
-Elly
- Next message: LuckyDucky: "Re: Short Recommendations"
- Previous message: John C. Bollinger: "Re: Question on Class usage"
- In reply to: Michael Borgwardt: "Re: Multiple languages in one JLabel"
- Next in thread: VisionSet: "Re: Multiple languages in one JLabel"
- Reply: VisionSet: "Re: Multiple languages in one JLabel"
- Reply: Andrew Thompson: "Re: Multiple languages in one JLabel"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|