Can anyone tell me which package do i need to import in j2me if i want the functionalities of awt package in java ??
Can anyone tell me which package do i need to import in j2me if i want the functionalities of awt package in java ??
Hi avanidave,
The awt package in java is not available in J2ME since it is designed and optimised for desktop computers.
Due to the screen size limitations and restricted user interactions, the MIDP UI API is designed for mobile devices comprising of the high level and low level UI.
A few links for getting started with MIDP UI:
http://developers.sun.com/techtopics...p/articles/ui/
http://www.javaworld.com/javaworld/j...0516-midp.html
http://www.developer.com/java/j2me/a...0934_1561591_1
Best Regards,
Gracy
avanidave asking for awt package in j2me is asking a bit to much. if u could tell us what ur planning to do then we may be able to tell you ways of how to implement it in J2me but if ur asking for awt package as it is i am sorry that wont be possible.
Regards
Nouman
Hi,
I am working with an application which needs both the fucntionality of bluetooth as well as the Robot class.Do i have any way where we can have both of them.
If not can you suggest me a solution for my problem which is written below
My Application is basically a client-server application.
My client (in mobile) tries to simulate the mouse and it tries to move the mouse pointer on desktop(PC) using bluetooth as mode of communication.I need to find a way to accomplsih this.
Waiting For your replies ????
Thanks,
Paul.
[QUOTE=srpoucse;724791]
My Application is basically a client-server application.
My client (in mobile) tries to simulate the mouse and it tries to move the mouse pointer on desktop(PC) using bluetooth as mode of communication.I need to find a way to accomplsih this.
QUOTE]
Couldn't understand exactly the problem definition - do you want to replace the desktop mouse with your mobile? I think it would not be possible without hardware changes...
You want to use your touch device, as touch pad for your computer and move the mose pointer on the PC ?My client (in mobile) tries to simulate the mouse and it tries to move the mouse pointer on desktop(PC) using bluetooth as mode of communication.I need to find a way to accomplsih this
On Mobile side you need to use JSR-82 bluetooth API or CommConnection API(if you can connect ur mobile on USB port)to connect to the PC.
On the PC side you need to use blueZ or CommConnection API's to communicate with the mobile phone.
Once the communication channel is establised, you need to capture all the pointer press() and pointer drag() and pointer release() events on the Canvas of the mobile device runing this app and send them to PC which needs to move the mouse on the screen according to it.
thanks,
~Amitabh