" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi
Sometimes we need to include a hyperlink in blackberry project. Here is the utility method which will return a LabelField behaving as if it is a link.
private LabelField getLinkField(String linkLabel, final String webAddress, int fontSize)
LabelField link = new LabelField(linkLabel)
public boolean isFocusable()
protected boolean navigationClick(int status, int time)
BrowserSession session = Browser.getDefaultSession();
Font font = Font.getDefault().derive(Font.UNDERLINED, fontSize);
Mail (will not be published) (required)
Enter Captcha Code *
× seven = 14
Burn Ignorance is a knowledge initiative by Mindfire Solutions
Subscribe to our mailing list to get the updates to your email inbox...