permaculture playing cards*
The moose likes Applets and the fly likes JApplet steals mouse wheel from main page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "JApplet steals mouse wheel from main page" Watch "JApplet steals mouse wheel from main page" New topic
Author

JApplet steals mouse wheel from main page

John Semler
Greenhorn

Joined: Dec 11, 2010
Posts: 13
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

Joined: Dec 11, 2010
Posts: 13
The solution to this problem is simple, add the parameter "initial_focus: false" to the parameters section like this:



No more mouse wheel lockup!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JApplet steals mouse wheel from main page
 
Similar Threads
Deploying my Japplet in Netbeans
JApplet, Tomcat & Linux
Applet revesit problem - Help pls
hi all....
Revisiting an Applet - Urgent