×

Discussion Board

Results 1 to 3 of 3

Thread: display problem

  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    8

    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:


    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)
        {
            super();
            resImage = resImg;
            this.main = midlet;
        }
        
        public void paint(Graphics g)
        {
            BoiteOutils bo = new BoiteOutils();
        	try
        	{
        		System.out.println("Chargement de " + resImage);
        		img = Image.createImage(resImage);
    		}
        	catch (IOException e)
        	{
        		System.out.println("Erreur");
    		}
        	
        	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
    Location
    Bangalore, India
    Posts
    116

    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

    http://discussion.forum.nokia.com/fo...ht=#post784994
    Thanks,
    Somendra

    http://in.linkedin.com/pub/somendra-singh/4/1a9/703

  3. #3
    Registered User
    Join Date
    Oct 2010
    Posts
    8

    Re: display problem

    Hello
    Thanks for your help

    For people who have the same problem
    look here :

    http://wiki.forum.nokia.com/index.ph...dition_devices

    Bye

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
  •  
×