×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Feb 2007
    Posts
    21

    Talking Which package in j2me provieds functionality 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 ??

  2. #2
    Regular Contributor
    Join Date
    Oct 2005
    Posts
    50

    Re: Which package in j2me provieds functionality 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

  3. #3
    Regular Contributor
    Join Date
    Aug 2006
    Location
    Rawalpindi, Pakistan
    Posts
    486

    Re: Which package in j2me provieds functionality of awt package in java ?

    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

  4. #4
    Registered User
    Join Date
    Apr 2010
    Posts
    3

    Re: Which package in j2me provieds functionality of awt package in java ?

    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.

  5. #5
    Regular Contributor
    Join Date
    May 2007
    Location
    India
    Posts
    208

    Re: Which package in j2me provieds functionality of awt package in java ?

    [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...

  6. #6
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: Which package in j2me provieds functionality of awt package in java ?

    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
    You want to use your touch device, as touch pad for your computer and move the mose pointer on the PC ?

    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

Similar Threads

  1. j2ME, java enabled, and the 3410
    By davidkangaroo in forum Mobile Java General
    Replies: 2
    Last Post: 2002-07-05, 22:30
  2. personal java and j2me
    By davidkangaroo in forum PersonalJava
    Replies: 1
    Last Post: 2002-07-05, 20:56
  3. New in developing Java Forte & J2ME
    By Nokia_Archive in forum Mobile Java General
    Replies: 1
    Last Post: 2002-05-24, 13:59
  4. Java and J2ME
    By Nokia_Archive in forum Mobile Java General
    Replies: 1
    Last Post: 2002-05-24, 08:44
  5. Java and J2ME
    By Nokia_Archive in forum Mobile Java General
    Replies: 1
    Last Post: 2002-05-24, 02:03

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×