Click here to Skip to main content
12,998,785 members (72,069 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I am working on J2ME Aplication using LWUIT.Now i have to create a form having four image buttons in 2x2 matrix.That i did using GridLayout but how to resize the image Buttons according to the Screen size of Mobile using LWUIT toolkit?Also i want to know how to use the concept of Tooltip in J2ME as it is not available in J2ME?
Posted 22-Oct-12 0:54am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

make it relative: get the screen resolution and make up the buttons size according to that.

// logic code - not usable!
ScreenWidth wide = 200;
button.setSize((int)(wide*0.2), (int)(wide*0.2)); // cast the double to int | Button will be 20% of screen width
Akanksha Raina 23-Oct-12 3:11am
thnx.Will you please tell me how to use Tooltip in case of J2ME as it is not directly available in J2ME.So,how to use this?
TorstenH. 23-Oct-12 5:00am
No sorry, J2ME is not my thingy.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170622.1 | Last Updated 22 Oct 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100