Search code examples
javablackberry

setTitle(string) - Blackberry


I have a class that indirectly inherits from MainScreen, and setTitle(string) isn't working. Below is my hierarchy:

public class Class1 extends MainScreen { 
    super( MainScreen.VERTICAL_SCROLL | MainScreen.VERTICAL_SCROLLBAR );
     ... 
} 
public class Class2 extends Class1 { 
    setTitle("Hello World"); 
     ...
}

I have also tried super.setTitle(string).

It compiles correctly, but no title shows on the screen.

What am I missing? Thanks.


Solution

  • Comment transformed to answer:

    I don't remember any issues with this method and it's quite straight forward. Most probably you call setTitle somewhere else. Please search your code.