Skip to main content

Why we cant create underlined text with ResourceEdit?

1 reply [Last post]
bhakki
Offline
Joined: 2009-09-09
Points: 0

Hi,
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();
style.setFont(font);

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.
vprise
Offline
Joined: 2003-11-07
Points: 0

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.