Re: Add drawing function MouseMotionEventListener program?
Did you try what I suggested in my last post?
Re: Add drawing function MouseMotionEventListener program?
I'm thinking the issue is because I'm creating that new MyPanel, so it just throws that new 450,450 area in the next available slot
Re: Add drawing function MouseMotionEventListener program?
Quote:
Originally Posted by
Norm
Did you try what I suggested in my last post?
but where am I copying the drawstring code to?
Re: Add drawing function MouseMotionEventListener program?
Quote:
where am I copying the drawstring code to?
Copy the whole paintComponent() method.
Re: Add drawing function MouseMotionEventListener program?
Ah ok i'll do that, be back in a sec!
Re: Add drawing function MouseMotionEventListener program?
Quote:
Originally Posted by
Norm
Copy the whole paintComponent() method.
Wait a sec, where is the paintComponent method being copied to?
Re: Add drawing function MouseMotionEventListener program?
To the class where you want to do some custom painting and drawing.
Re: Add drawing function MouseMotionEventListener program?
Quote:
Originally Posted by
Norm
To the class where you want to do some custom painting and drawing.
Ahhh I see what you mean! Ok now that I got this to work I'm pretty sure I can add some basic mouse painting functions without too much issue!
Thanks Norm!
Re: Add drawing function MouseMotionEventListener program?