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
ZevsVU
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)

Please use plain text.
Developer
pradeep_ch
Posts: 543
Registered: ‎12-23-2010
My Device: Z10
My Carrier: Airtel

Re: getDisplayWidht

Display.getWidth();

Please use plain text.
Contributor
ZevsVU
Posts: 20
Registered: ‎05-17-2012
My Device: have no device
My Carrier: KievStar

Re: getDisplayWidht

What i mast import for this?

Please use plain text.
Developer
pradeep_ch
Posts: 543
Registered: ‎12-23-2010
My Device: Z10
My Carrier: Airtel

Re: getDisplayWidht

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

Please use plain text.
Contributor
ZevsVU
Posts: 20
Registered: ‎05-17-2012
My Device: have no device
My Carrier: KievStar

Re: getDisplayWidht

thanks!)

Please use plain text.