• Post Reply Bookmark Topic Watch Topic
  • New Topic

Cursor not setting  RSS feed

Ed Dantes
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a situation with a custom made cursor not setting when a menu item is pressed. Basically it is an applet with a JMenuBar and JPanel on top of it. Everything is registered and all event handlers are set, as a matter of fact if you position the cursor in the main panel (anywhere away from the menu bar) and use an accelerator it immediately brings up the custom cursor. The funny thing also is that when I click another window and click back to my window, the custom cursor magically appears!! So basically I establish a new cursor, which I called helpCursor, and set it
arentJPanel.setCursor(helpCursor). It may have something to do with the focus, but nothing is working, I tried also revalidating and repaint also to no avail. Help please!!

Thank You
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!