aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes MouseEvent handling. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "MouseEvent handling." Watch "MouseEvent handling." New topic

MouseEvent handling.

Pratik Khetia
Ranch Hand

Joined: Jun 29, 2001
Posts: 50
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.
It is sorta covered in the JavaRanch Style Guide.
subject: MouseEvent handling.
Similar Threads
Keeping JInternal Frame within desktop
problem in JSplitPane
Multiple Document Interface in Java
how i can make a JinternalFrame un-moveable
Do we have a JStatusBar in java?