Skip to main content

Screen Width

2 replies [Last post]
zhane
Offline
Joined: 2008-09-27
Points: 0

If i'm creating a textarea, how do I know how many columns I need to put into the constructor to fill up the entire screen or half of it, horizontally?

I cant seem to find any getWidth thingy that I can use..

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rlopes
Offline
Joined: 2004-09-22
Points: 0

use a layout manager for that.

If you want to know the dimensions of the screen you can use:

Display.getInstance().getDisplayWidth()
Display.getInstance().getDisplayHeight()

zhane
Offline
Joined: 2008-09-27
Points: 0

oh.. so I can just call it?