Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JApplet steals mouse wheel from main page

 
John Semler
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm having a problem with my MoonClock JApplet when it starts up on my main web page. It appears that the mouse wheel is disabled for the web page after the applet starts up. About the only sure fire way to free up the frozen mouse wheel is to click on the face of the applet. It will lockup again after each page refresh.

To see a really simple JApplet example that exhibits these same symptoms, click on the following link: http://chortle.ccsu.edu/java5/Notes/chap36/ch36_2.html

Is there any code I can insert in the JApplet "init()" or "start()" routines to pass the mouse wheel focus (for a lack of a better term) back to the web page?

Thanks!
 
John Semler
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The solution to this problem is simple, add the parameter "initial_focus: false" to the parameters section like this:



No more mouse wheel lockup!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic