• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Timer & mouseListener

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Friends,
I have a problem with mouselisteners.
Here its.
I have 5 panels whose label content is a country names. 5 more panels on left side,with the labelcontent capitals).So i have to drag a panel from right side & place in it on the left side if the capital matches the country label placed on the leftside panel then rightside panel should be placed near the left side panel.
If the answer is wrong then it should bounce back to its original position.
This works fine.
But when the answer is wrong it should wait for few secs inidicating by setting a icon to that label(label on the left side) & then bounce back to its orignal position.
This is also done with timer so that it waits for few sec to indicate its wrong.
The problem is when the answer is wrong timer action starts & the action taking place are changing label icon & then bonuce back to the original position.
If i drag the panels on the right side fastly, & if all panels answer is wrong then it get struck in the middle what should i do.
If i give less milliseconds the wrong answer indication doesn't take place.But its get struk while dragging fastly.
If i give more milliseconds,wrong answer indication takes place but it gets struk while draggin the panels fastly.
So tell me a suggestion to get both not to struck while dragging fastly & the same it should be visible if its wrong.
Excepting u'r suggestion & solutions,
With regards,
Sonara.
[ February 11, 2002: Message edited by: Sonara Rahul ]
 
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sonara,
Would it be possible to remove the drag-drop listener during the waiting period? This would remove the possibility that anything has changed in the waiting time.
Regards,
Manfred.
 
Sonara Rahul
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello manfred,
Could u pl.. explain me in detail.I can't get u.
pl......
with regards
Sonara.
reply
    Bookmark Topic Watch Topic
  • New Topic