Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

MouseEvent handling.  RSS feed

 
Pratik Khetia
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a class which has JSplitPane in it. In the top of the JSplitPane I am adding a JDesktop and then I have another class which returns JInternalFrame which I am adding to JDesktop.
Now I want to be able to draw something on that JInternalFrame so I want to attach MouseListener & MouseMotionListener so where should I write the code for it ??
In the class having JDesktop or in the class having JINternalFrame.
thanks
Pratik
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!