I've been having problems with the now deprecated mouseDown and mouseDrag methods, I know the deprecation causes no problem, the program runs fine, but for grading purposes I want my program to be error and warning free, is there any EASY alternative that can solve this deprecation method? I know the method has been replaced by processMouseEvent but I've had a difficult time understanding the processing and stuff, the only thing I need is to register the position where the mouse was clicked down on the applet, thanks!
conspiracy_dawg
0
Newbie Poster
Recommended Answers
Jump to Postbut for grading purposes I want my program to be error and warning free, is there any EASY alternative that can solve this deprecation method?
Read the updated api for mouse handlers I guess and follow suit.
Jump to PostIf you look here:-
http://java.sun.com/docs/books/tutorial/uiswing/14painting/examples/index.html#SelectionDemo
The SelectionDemo code should show you how to handle mouse clicks and mouse dragging. You should be able to adapt it to suit your needs. However, …
All 6 Replies

iamthwee
conspiracy_dawg
0
Newbie Poster

iamthwee
ikeoddy
0
Newbie Poster
AndreiDMS
0
Junior Poster in Training
PersonalIT
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.