We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › import java.awt.geom
Page Index Toggle Pages: 1
import java.awt.geom ? (Read 733 times)
import java.awt.geom ?
Feb 25th, 2008, 7:53am
 
How do I import java.awt.geom so that Processing can use the library?  I'm using the Processing install that includes java.

Where do I download the awt.geom library?

Where do I place it in Processing?

thanks!
Re: import java.awt.geom ?
Reply #1 - Feb 25th, 2008, 9:20am
 
All you need to do is write "import java.awt.geom.*;" at the top of your code. Java knows where to find it.
Re: import java.awt.geom ?
Reply #2 - Feb 25th, 2008, 10:51am
 
turns out to be a slightly different problem.  Yes, I can access awt.geom, but the code I'm testing requires Math.signum...which is in Java 1.6.  Anyone know how to install the 1.6 awt.geom library into Processing?

thanks
Re: import java.awt.geom ?
Reply #3 - Feb 25th, 2008, 1:39pm
 
just specify the package in your code :

Code:
println(Math.signum(3.5)); 

Page Index Toggle Pages: 1