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

Reply With Quote


