wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes While mouse button is pressed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "While mouse button is pressed" Watch "While mouse button is pressed" New topic
Author

While mouse button is pressed

Ulvi Cetin
Ranch Hand

Joined: Mar 03, 2003
Posts: 39
I want to display images while the mouse button is pressed and stop displaying them when it is released. I can detect if and when the button is pressed (by mousePressed(MouseEvent e)) but how can I detect if it is released inside mousePressed(MouseEvent e)? Anyone has any ideas?
Thx.
Ulvi.
ali rafiq
Ranch Hand

Joined: Jan 09, 2003
Posts: 75
i think it may be help full athere


if u learn to break the rock .. next day u will be looking to Mountain.
Ashish Mahajan
Ranch Hand

Joined: Feb 19, 2003
Posts: 77
Sorry, This is not the ans. to the ques.
Ali, the html file for swing namely (home1.htm) contains a serious virus.
Here is what i get from Norton Antivirus :-
Object Name : C:\Documents and Administrator\Locale settings\..\home1[1].htm
Virus Name :HTML.Redlof.A
Action Taken :Unable to repair this file
upon searching the net for virus i get the foll link :-http://securityresponse.symantec.com/avcenter/venc/data/html.redlof.a.html
Ali, if u r lurking here, let us know that u have read this post and that u r going to remove the virus immediately. If we don;t get reply from u, we will post in a separate thread. I don;t want any of my friend's comp being crashed.
I hope u will take immediate action.


The best teams have no specialists, only general contributors with special skills
ali rafiq
Ranch Hand

Joined: Jan 09, 2003
Posts: 75
i have understand ur problam about the extension of home.htm.. now im changing it
 
Don't get me started about those stupid light bulbs.
 
subject: While mouse button is pressed