The getWidth() method is a method of the Displayable class. It returns an int value indicating the width (horizontal displayable area) available to an application on the device. The value returned depends on the following factors:
- Mobile device
- Use of ticker
- Use of commands
- Use of title
The general syntax of this method is as follows: