top of page
Search
quemanhaibothlo

Uniblue SpeedUpMyPC 2011 5.1.1.1 [ak] Free Download Cortjar







Category:Computer security software Category:Windows security softwareQ: How to make J2ME multi-language I want to make a simple e-book reader for java mobile using j2me. I want to make it multi-language (english and hindi) the text area to be displayed in hindi. A: The built-in system font that's installed on most (if not all) mobile phones can display Hindi. Therefore you should be able to display Hindi in your app with the system font. There are two methods to display text in a multi-language scenario: You are using the built-in system font. This is what you would typically use. For example: public class MultiLangTextSample extends MIDlet { private StringBuffer buffer = new StringBuffer(); private String text; public void startApp() { text = "Multilingual Text!"; buffer.append(text); buffer.append(System.getProperty("line.separator")); displayText(buffer.toString()); } public void displayText(String s) { Font f = c.getFont(Font.SANS_SERIF, 10); c.setFont(f); c.drawString(s, 80, 80); } } As you can see in the above sample code, I use the Font class to select the system font and to specify the size of the font. You are using your own font instead of the system font. public class MultiLangTextSample extends MIDlet { private StringBuffer buffer = new StringBuffer(); private String text; private Font font; public void startApp() { text = "Multilingual Text!"; buffer.append(text); buffer.append(System.getProperty("line.separator")); font = new Font(" ac619d1d87


Related links:

1 view0 comments

Recent Posts

See All

Comments


bottom of page