Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry® OS Smartphones

New Member
Posts: 1
Registered: ‎11-20-2010
My Device: Not Specified

problem displaying a title with settitle()

[ Edited ]

Hi guys,


Im using the Blackberry 9800 simulator, and i have a problem to display a title on the screen.


the settitle() method is called from another class. Here's the code:


class test  extends MainScreen {

MyClass new = n MyClass()




code for MyClass:


class MyClass extends MainScreen {


     public void callTitle(){

    setTitle("Hello world"); // not works
Dialog.alert("Hello world") // works
But the "hello world" text is not displayed. But when i put Dialog.alert("Hello world") the alert is displayed, and  when i put settitle("hello world") directly in the "test" class, the title is displayed, but i want to call settitle() from another class .
Thanks for your help :-)