Seriously? What's the display resolution of the target device, and what is the range of a short int on that device? And for that matter, what's the range of a regular int on that device?
Qt's line drawing routines use ints (
http://doc.qt.nokia.com/4.7-snapshot/qline.html). So do the drawing routines provided by Java's Swing libraries.