Skip to main content

Why we cant create underlined text with ResourceEdit?

Please note these forums are being decommissioned and use the new and improved forums at
1 reply [Last post]
Joined: 2009-09-09

Why we cant create underlined text with ResourceEdit?
Programmetically its possible. But other styles are possible to create through resourceEdit.
Because i cant create underlined text by using following statement,

Font font = resources.getFont("NormalFont");

Directly i get it from resourceEdit because of i got null pointer exception on android device while using like this means.

Font font = Font.createSystemFont(Font.FACE_SYSTEM, Font.STYLE_UNDERLINED | Font.STYLE_BOLD, Font.SIZE_LARGE);
Style style = new Style();

I already discussed in the fourm regards this.
Is there any other way to create underlined text?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-11-07

MIDP made a mistake in placing underline within the font which we didn't want to replicate.
Underline is a property of Style in the current SVN and its supported in the current resource editor.