Meaningless Drivel is fun!*
The moose likes Swing / AWT / SWT and the fly likes something not right with MyMouseListener class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "something not right with MyMouseListener class" Watch "something not right with MyMouseListener class" New topic
Author

something not right with MyMouseListener class

Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4340
    
    2

it works just fine, but look at the code

this is what bothers me: in mousePressed() and mouseDragged().
if(parent.getTransparent() || parent.getFloodFill() || parent.getReplace())
{
}
as i added new features it got to look like this.


SCJP
Visit my download page
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: something not right with MyMouseListener class