Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Window applet and mouse pointer

843807Aug 17 2010 — edited Aug 17 2010
Hi all!

I am developing a framwork to create educacional games to the OLPC (one laptop per child) project.

So, in this framework the games run in a Window application (JFrame) over a JApplet.


The problem is that I dont know how to hide the mouse pointer that appears over my window applet. I try to use the Toolkit.createCustomCursor(..) and them use the setCursor(..) method, but not work because the security policy.


Anybody have some ideia about how can I solve this problem?

here is a link that demonstrate my application running, and the mouse pointer over all the graphics.

http://nti.catolica-to.edu.br/Imagens/screenucamouse.png


Thank you!

Comments

InoL

I have a form region in my application
There is a whole application in your workspace. Where is the problem?

rgiljohann

The form is on page 3 called Audit. You can get there by clicking on the links on the report page to populate existing records which is how the end users will end up doing it.

image.png

InoL
Answer

If you run your page in debug mode you see weird things happening. Always run in debug mode if you don't know what is happening!
As far as I could see you had both a Submit default action and a Click DA on your Save button. I removed the DA, and now it works.

Marked as Answer by rgiljohann · Jan 5 2023
rgiljohann

You are awesome. Thank you. It is odd that having a DA causes it to fail, but I can worry about that some other time. Thanks again.

InoL

It is odd that having a DA causes it to fail
Not at all. Your button has the Submit action, and your DA had it too too. That caused a double submit, as you can see in the debug log if you put that DA back. That totally f*ed up the whole process. Debugging is the most important tool a developer can have!

1 - 5
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 14 2010
Added on Aug 17 2010
3 comments
1,998 views