MyGlassPane extends Component { ....paint (Graphics g) {g.setColor(Color.OPAQUE);g.drawRect(dimensions, of , entire, MyGlassPane);g.setColor(Color.black);g.drawRect(dimensions, sent, from ,dragEvent);}}
Now, you might have to do something fancy with the event listeners, like onmousedown, set the glasspane's visibility to true, then give the glass pane a listener for mouse drags. See I don't know if the mouse drags will still get passed to the underlying component on wich the mouse was originally clicked or not. Just include printlns in your event listener to print out the event's source.
Edited by - Jim_Ross on 2/23/00 1:36:32 PM