title: How can I import a library to a Java project in NetBeans?
body: <p>I needed a class that could create polygons with Double or Float numbers, instead of int numbers. Well, I found it <a href="http://xmlgraphics.apache.org/batik/javadoc/org/apache/batik/ext/awt/geom/Polygon2D.html" rel="noreferrer">here</a>, and <a href="http://www.java2s.com/Code/Jar/ABC/Downloadbatikawtutil17jar.htm" rel="noreferrer">here is the Jar file download</a>. I extracted the Jar and added it to the libraries in NetBeans; but now, I don't know how to import the package to my project. If I type "import org.apache.batik.ext.awt.geom;", it says that the package does not exist. How can I import that package to my project? Thanks!</p>