• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Help!!!!

 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi javaRanchers,

I got a big problem REALLY big,This Problem is i need to add a command for a Inventory Canvas but the current display is not on the inventory so i need to call the command can any one pls help !!!

regards,
jason
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Implement an interface which does nothing but adds a method to call

display,

and implement it in your canvas class

and when u make a obj of ur class(canvas)

call this method passing display from midlet


import javax.microedition.lcdui.Display;


public interface DisplayInterface
{
public void createDisplay(Display display);
}

now in your midlet when u passing control to canvas

call this method
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic