Hi Kenneth,
 
> 1.  First a mousePress event is generated on a button press.  
> Here is where I check if it is a right button press or not and do the
popup. 

This always works, so that is not the problem, the menu always appears.

> Within the popup it will collect the information from from the 
> selection area thus the columns and rows displaying on the popup.

This also always works, so that's ok !

> 2. Second a mouseRelease event is generated on a release of the button.
> I do nothing in this method.

Are you sure about that ? Cause the rubberband disapears
mostly after the button is released.

> 3.  mouseClick is generated if a mouse button is clicked.
> For me a click is fast press and release of the button and 
> I think controlled by the operating system as whether to 
> generate a click event or not.  How java handles this am 
> not sure.
> Also in the mouseClick method is where I do a reposition 
> of the cursor and checking for hot spot hits.

Ah so we have to look somewhere in this part, cause it threads
the right-click of the mouse as a left click... and do you also
know which module has the mouse-click event ?

> Thus generating a mouseClick in 5.0 as well.

Indeed, because you do not handle the release event it treats
it as a mouse click, but it sometimes refuses to see it is a
right click and triggers the left click, so somewhere the code
gets confused after the click.

> This would explain what Patrick is seeing.  
> I could be wrong though.

I think you're getting very close, but now we have to know
in which module to start debugging.

> Stick some System.out.println's in there to see what 
> events are being generating for when and what order.

Good argument, will do that.

> If there is a mouseClick being generated then am pretty 
> sure that is the problem.  

Indeed.

> Stick a break point in there on those methods to 
> check it after drawing the rectangle and before 
> hitting the right mouse button.

Yeah now i only have to find which module and where
to start, then i will start debugging and get this
crap fixed.

Met vriendelijke groeten,
Best Regards,
 
Patrick Bielen
 
System-Administrator Stafa Holland BV
Microsoft Certified Professional
Sun Certified Java Programmer





-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Tn5250j-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tn5250j-general

Reply via email to