OESF | ELSI (coming soon) | Community Links (coming soon) | LinuxPDA | Ibiblio


Welcome Guest ( Log In | Register )

Reply to this topicStart new topic
> Finding The Available Screen Size?, Please try to help
post Nov 1 2006, 03:40 PM
Post #1

Group: Members
Posts: 23
Joined: 9-November 05
Member No.: 8,503


I'm working on a java app that I will be using on a sl-c3100.

The problem I have having is that I want my program to use all of the screen that is available at any given moment, but there doesn't seem to be a way to find out what *IS* available? I'm pretty sure that the j2me specification is basically the same as java 1.1.8, and the only way I am aware of for getting the screen size is:

Dimension d = Toolkit.getDefaultToolkit().getScreenSize();

and the problem with that is that it just gives you the absolute size (either 640 x 480, or 480x600), and doesn't take into account the task bar, or the virtual keyboard/kanji pad. This means that when my program launches, it is bigger than the space I have available. Additionally, even if I set it to take the height of the taskbar into account, opening the virtual keyboard covers part of the app.

Is there anyway to figure out how much screen is availble in java, on a zaurus? Also, is there any sort of event I can listen for to handle the case that the virtual keyboard gets opened (so I will know I need to resize my program)?

Thanks for any help you can provide.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 24th June 2017 - 07:50 PM