Please I'm finding it difficult to understand why this piece of code works, I knw wat it does but I dont knw why it works based on something i think is a flaw (but definitely isnt, just that i dont grab whats happened)...Please can i get some explanantion. Thanx (pls note, i'm new to j2me)...this is the code:
***************************************************************
private void initialize() {
javax.microedition.lcdui.Display.getDisplay(this).setCurrent(get_helloTextBox());
}
***************************************************************
line 2 of that code calls the getDisplay() method on a class, not on the object of class Display (from lcdui package). How does this work? Is it possible to call a method on a class or does it see javax.microedition.lcdui.Display as an object. Any explanations?...Thanx

Reply With Quote

