deanbrowne / j4me

Automatically exported from code.google.com/p/j4me
1 stars 1 forks source link

Why TextBox, not Label? #56

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

Hi, guys. Great respect for your very useful library.

Exploring sources I found one thing.
RadioButton class is based on TextBox field. It draws selected item in 
TextBox instance. But look - TextBox implementation is system dependent - 
I mean that available language(s) depends on phone locale. And it is 
surely right approach for input item, which TextBox is. But RadioButton 
should be more independent from system locale. 
If i decide change default system Font to my own (e.g. Image-based), i 
would need to override paint() method in Label class. And from that moment 
I could draw all symbols I want (for example Chinese hieroglyphs while 
phone locale is Russian). But RadioButton would stay binded to phone 
locale. 
So why don't you replace TextBox with Label in RadioButton class?

PS Sorry for poor English.

Alexander.
identifier865@gmail.com

Original issue reported on code.google.com by identifi...@gmail.com on 21 Jan 2010 at 12:43