Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

mouselistener problem  RSS feed

 
Flora Ng
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I implement something like this:
There're 2 buttons. When click the first one, the pointer will change to wait cursor unless button2 is pressed. When it enters the second one, it will change to default cursor.
I know I have to use mouselistener, but the compiler keep on complaining: gui.java uses or overrides a deprecated API
What's the problem?
Hope can get some help...
Thanks a lot.
 
Durga Penmatsa
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am not clear what you are looking for. Could you be more specific or paste some of our code where this error is coming
Reagrds
Durga
Originally posted by Flora Ng:
How can I implement something like this:
There're 2 buttons. When click the first one, the pointer will change to wait cursor unless button2 is pressed. When it enters the second one, it will change to default cursor.
I know I have to use mouselistener, but the compiler keep on complaining: gui.java uses or overrides a deprecated API
What's the problem?
Hope can get some help...
Thanks a lot.

 
Rehan Malik
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whatever you are implementing works.
As far as the deprecation error that occurs...it's not an error. It's just merely a warning and a suggestion to use a newer version of a method that you are using.
That's all.
Just compile w/ deprecation option and then you'll see which method it's referring to. Then flip through the Java documentations and find out which one to use.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!