Welcome!

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

Java Development

Reply
Contributor
Posts: 20
Registered: ‎05-17-2012
My Device: have no device
My Carrier: KievStar
Accepted Solution

getDisplayWidht

hello)

How a can get display width in

 

public final class MyScreen extends MainScreen
{

  public MyScreen()

  {

//I need get display widht here

  }

}

 

thanks in advance for help)

Developer
Posts: 543
Registered: ‎12-23-2010
My Device: Z10
My Carrier: Airtel

Re: getDisplayWidht

Display.getWidth();

Highlighted
Contributor
Posts: 20
Registered: ‎05-17-2012
My Device: have no device
My Carrier: KievStar

Re: getDisplayWidht

What i mast import for this?

Developer
Posts: 543
Registered: ‎12-23-2010
My Device: Z10
My Carrier: Airtel

Re: getDisplayWidht

import net.rim.device.api.system.Display;

Contributor
Posts: 20
Registered: ‎05-17-2012
My Device: have no device
My Carrier: KievStar

Re: getDisplayWidht

thanks!)