Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Mobile Tools for Java (MTJ) » Question about itemStateChanged handler
Question about itemStateChanged handler [message #23729] Wed, 03 December 2008 06:15 Go to next message
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 #23773 is a reply to message #23729] Wed, 03 December 2008 09:23 Go to previous messageGo to next message
David Marques is currently offline David Marques
Messages: 80
Registered: July 2009
Member
Hello Hans,

I guess you must be using WTK right ? 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.

PS: You can see the code above if you open the Displayable class on
eclipse class file editor.

Best Regards,

David Marques
Re: Question about itemStateChanged handler [message #23816 is a reply to message #23773] Wed, 03 December 2008 11:15 Go to previous message
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 #568942 is a reply to message #23729] Wed, 03 December 2008 09:23 Go to previous message
David Marques is currently offline David Marques
Messages: 80
Registered: July 2009
Member
Hello Hans,

I guess you must be using WTK right ? 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.

PS: You can see the code above if you open the Displayable class on
eclipse class file editor.

Best Regards,

David Marques
Re: Question about itemStateChanged handler [message #568969 is a reply to message #23773] Wed, 03 December 2008 11:15 Go to previous message
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
Previous Topic:Question about itemStateChanged handler
Next Topic:MTJ 0.9.1 RC1 now available for download
Goto Forum:
  


Current Time: Mon Jul 28 12:44:45 EDT 2014

Powered by FUDForum. Page generated in 0.02821 seconds