Discussion Board

Results 1 to 3 of 3

Hybrid View

  1. #1
    Registered User alchabitius's Avatar
    Join Date
    Apr 2003
    Posts
    6
    Hi!

    I am working on my first J2ME program testing it on 7210 emulator. First I am showing a Form without any title. Then I am showing a Canvas, and in 7210 emulator it has a stupid title with midlet name in it.

    Even worse, when I am returning to the original Form, it has the same title, borrowed from the Canvas, even if I try to give it another title.

    This doesn't happen with, say, DefaultColorPhone in WTK, so I decided that showing a title for a Canvas, no matter what, is the idea of Nokia.

    So, is there any way to get rid of this title?

    Thanks

    Alexander

  2. #2
    Nokia Developer Expert jalev's Avatar
    Join Date
    Mar 2003
    Posts
    382
    Hello

    You can use FullCanvas, which is little big bigger because there is no space reserved for title.

    import com.nokia.mid.ui.*;

    and extend the class from FullCanvas
    acording the Nokias example application and document
    you can download from www.forum.nokia.com/java
    www pages.

    public class yourCanvas extends FullCanvas
    {

    yourCanvas()
    {}

    paint();
    {}

    }

  3. #3
    Registered User alchabitius's Avatar
    Join Date
    Apr 2003
    Posts
    6
    Thank you!

    I thought so, that the only way is to use FullCanvas. And tried to do so.

    Since I am working with Wireless Toolkit, it doesn't have Nokia UI classes. I downloaded the archive from Nokia site and copied com/nokia/ui classes into the libraries which WTK uses. But whatever I did, the compiler didn't accept the import 'com.nokia.mid.ui.*;' string.

    Could you please tell me where I am wrong?

    Thanks,

    Alexander

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved