I am using the java.awt.geom library in Processing and specifically using the Rectangle2D.Float class.
When I use import java.awt.geom.Rectangle2D.Float
I get an error when I try declaring Rectangle2D.Float buttonOne;
, but if I use import java.awt.geom.Rectangle2D
or import java.awt.geom.*
the code works fine.
I am wondering why this is.
If you just drop the Rectangle2D from the Float it will work with the first import
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.