Question about itemStateChanged handler [message #23729] |
Wed, 03 December 2008 11:15 |
Eclipse User |
|
|
|
Originally posted by: news.s237965939.online.de
I have a form declared like that:
public class OptionsForm extends Form implements ItemStateListener
in the line of the imlementation of my ItemStateListener I get this warning:
The method OptionsForm.itemStateChanged(Item) does not override the
inherited method from Displayable since it is private to a different
package OptionsForm.java
The program seems to work correctly but I'm a bit worried about the
warning because I don't understand their meaning. Can s.o. please explain ?
TIA
Hans
|
|
|
|
Re: Question about itemStateChanged handler [message #23816 is a reply to message #23773] |
Wed, 03 December 2008 16:15 |
Eclipse User |
|
|
|
Originally posted by: news.s237965939.online.de
David Marques wrote:
> Hello Hans,
>
> I guess you must be using WTK right ?
Right, David! Good point, you seem to have a lot of experience.
> If so the explanation is the following:
> It seems that WTK Displayable class implementation has a package
> protected method called itemStateChanged also and the compiler show the
> warning. Bellow the part of the Displayable.class code:
>
> // Method descriptor #159 (Ljavax/microedition/lcdui/Item;)V
> // Stack: 2, Locals: 3
> void itemStateChanged(javax.microedition.lcdui.Item src);
>
> I guess you will not see that behavior on other emulators.
I've worked about 15 years with C++ and this is my first java project.
So it will still take some time until I fully understand that. I'm gonna
live with the warning as long as it works. Actually I'm porting an
existing C++ app to cell phone right now. I've also tried the
Sony/Ericsson SDK for a little while but then uninstalled it to avoid
too much confusion. The WTK emulators looked better :) So I can't
compare unless I reinstall the other SDK. That would be interesting, I
hope I haven't deleted it.
Thanks,
Hans
|
|
|
|
Re: Question about itemStateChanged handler [message #568969 is a reply to message #23773] |
Wed, 03 December 2008 16:15 |
Eclipse User |
|
|
|
Originally posted by: news.s237965939.online.de
David Marques wrote:
> Hello Hans,
>
> I guess you must be using WTK right ?
Right, David! Good point, you seem to have a lot of experience.
> If so the explanation is the following:
> It seems that WTK Displayable class implementation has a package
> protected method called itemStateChanged also and the compiler show the
> warning. Bellow the part of the Displayable.class code:
>
> // Method descriptor #159 (Ljavax/microedition/lcdui/Item;)V
> // Stack: 2, Locals: 3
> void itemStateChanged(javax.microedition.lcdui.Item src);
>
> I guess you will not see that behavior on other emulators.
I've worked about 15 years with C++ and this is my first java project.
So it will still take some time until I fully understand that. I'm gonna
live with the warning as long as it works. Actually I'm porting an
existing C++ app to cell phone right now. I've also tried the
Sony/Ericsson SDK for a little while but then uninstalled it to avoid
too much confusion. The WTK emulators looked better :) So I can't
compare unless I reinstall the other SDK. That would be interesting, I
hope I haven't deleted it.
Thanks,
Hans
|
|
|
Powered by
FUDForum. Page generated in 0.03649 seconds