Creating a method for defining a area
What is the best way to make all the coordinates in an area as on obj开发者_开发技巧ect, I need it for MouseListener so that when I click on an area that area gets repainted?
A Rectangle specifies an area.
java.awt.geom.Area, which conveniently implements the Shape interface, is a good choice.
加载中,请稍侯......
精彩评论