• Post Reply Bookmark Topic Watch Topic
  • New Topic

something not right with MyMouseListener class  RSS feed

 
Randall Twede
Ranch Hand
Posts: 4683
8
Java Scala
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!