Discussion Board

Results 1 to 3 of 3

Thread: display problem

  1. #1
    Registered User
    Join Date
    Oct 2010

    display problem

    Hello everyone

    (i'm fench sorry for my bad english)

    I have a display problem in my application.
    I want to display a full screen image
    but some buttons appear

    Here is my code:

    public class MyCanvas extends Canvas
        public static int w;
        public static int h;
        private Main main;
        private String resImage;
        private Image img;
        public MyCanvas(Main midlet,String resImg)
            resImage = resImg;
            this.main = midlet;
        public void paint(Graphics g)
            BoiteOutils bo = new BoiteOutils();
        		System.out.println("Chargement de " + resImage);
        		img = Image.createImage(resImage);
        	catch (IOException e)
        	w = getWidth();
        	h = getHeight();
            g.fillRect(0, 0, w, h);
            img = bo.resizeForDiapo(img, w, h);
            int imW = img.getWidth();
            int imH = img.getHeight();
            int difW = (w - imW) / 2 ;
            int difH = (h - imH) / 2 ;
            g.drawImage(img, difW, difH, Graphics.LEFT | Graphics.TOP);

    I have a N97mini and when the phone is open, the buttons do not appear
    The buttons that appear are 4 arrow keys (left right, up, down) and a round button in the center and also 4 buttons (A, B, C, D)

    I tried with Canvas and GameCanvas, but no difference

    Thank you for helping me

  2. #2
    Registered User
    Join Date
    Jan 2009
    Bangalore, India

    Re: display problem

    Welcome to Forum Nokia Discussion Board!

    Please add below JAD attribute in your App's JAD File

    Nokia-MIDlet-On-Screen-Keypad: No

    Another developer had asked the same question here. You may see the discussion below



  3. #3
    Registered User
    Join Date
    Oct 2010

    Re: display problem

    Thanks for your help

    For people who have the same problem
    look here :



Similar Threads

  1. display problem
    By samazar in forum Series 40 & S60 Platform Feedback Archive
    Replies: 1
    Last Post: 2009-09-24, 11:01
  2. About Display Problem
    By abhi4u in forum Mobile Java General
    Replies: 6
    Last Post: 2009-03-06, 12:58
  3. Display Problem
    By nokiadongle in forum Mobile Java General
    Replies: 4
    Last Post: 2008-12-12, 14:53
  4. problem of display
    By rati2010 in forum Symbian
    Replies: 1
    Last Post: 2008-07-22, 08:11
  5. Display problem.
    By jbatteux in forum Mobile Java General
    Replies: 1
    Last Post: 2002-09-10, 20:08

Posting Permissions

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