Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2008

    Help needed in Low-leve GUI.

    I created a MIDlet and I created a canvas sub class and used paint method to draw on the screen.

    Now I want to transfer the control back from the Canvas Subclass to the MIDlet.( For closing my MIDlet).

    I created the following classes,
    a MIDlet class,
    a Canvas subclass.(to draw)
    Please help me.

  2. #2
    Registered User
    Join Date
    Dec 2004

    Re: Help needed in Low-leve GUI.

    what exactly is the question? what do you mean transfer control to midlet? the midlet is always there...
    you can close your midlet by calling midlet.notifydestroy and midlet.destroyapp


  3. #3
    Regular Contributor
    Join Date
    Oct 2005

    Re: Help needed in Low-leve GUI.

    may be you just need to throw the midlet to you canvas.and use its reference from there to close.
    class myMidlet extends MIDlet{

    public void startApp() {
    Display.getDisplay(this).setCurrent(new MyCanvas(this));/*now u can use this referance from your mycanvas to close the application*/

    hope you mean that.
    Wael Nabil
    Product Manager
    CITGlobal MOBiDIV

  4. #4
    Super Contributor
    Join Date
    Mar 2008
    The Capital of INDIA

    Re: Help needed in Low-leve GUI.

    Hi there,

    Just adding the reply to these posts.

    First of all make sure that what you are asking for..
    To transfer the control from canvas to midlet what does it ,mean.See midlet is the only way through which your canvas (or any displayable)is visible.So i hope you are asking for how to display the midlet rather than canvas.

    If it is the case then...think whether midlet is an object of displayable ..i guess no..

    Thanks with Regards,

    R a j - The K e r n e l

    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. GUI Libraries for Java ME
    By erik.hellman in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2008-04-11, 11:56
  2. Replies: 3
    Last Post: 2008-03-14, 05:34
  3. Replies: 4
    Last Post: 2007-05-15, 15:03
  4. S80 GUI example needed....
    By npipen in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-05-25, 14:50
  5. Nokia active server and Openwave's GUI extensions
    By trasatti in forum WAP Servers
    Replies: 0
    Last Post: 2002-10-15, 14: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