<p>How to select multiple objects in GUI</p>
1 posts in topic
Flat View  Flat View

Posted By:   Sandeep_Chauhan
Posted On:   Tuesday, June 4, 2002 03:47 AM

Hi , I am working on a editor which does mapping of two different objects. In this I am selecting these object using lines.

I am able to delete one mapping but if I want to select and delete how I can do that. Like window has control key and mouse click. Please tell me how to trap these two together.

Re: <p>How to select multiple objects in GUI</p>

Posted By:   Mark_Thomas  
Posted On:   Friday, June 14, 2002 10:45 PM

to trap 2 objects use a KeyListener and a MouseListener (for a key and mouse-click). look at the online documentation in java.awt.event.InputEvent and java.awt.event.KeyEvent here. look at the static variables such as CTRL_MASK (for the control button). you should be able to code some listeners to do what you want
About | Sitemap | Contact