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.
Page Index Toggle Pages: 1
Processing with NetBeans (Read 2402 times)
Processing with NetBeans
Nov 25th, 2009, 3:03am
 
Hi!

I'm working with processing.core in NetBeans IDE. I load jar file (processing.core) in a project, but there are functions for example scale() and camera() that it isn't recognized for NetBeans and I can't compile this project, but there are other functions that NetBeans recognizes.

Can you help me?
Thanks!
Re: Processing with NetBeans
Reply #1 - Dec 29th, 2009, 2:52am
 
Are you including the library in your class?
If you open the *.java file that is made by Processing on export, you will see:
Code:
import processing.core.*; 
import processing.xml.*;

import java.applet.*;
import java.awt.*;
import java.awt.image.*;
import java.awt.event.*;
import java.io.*;
import java.net.*;
import java.text.*;
import java.util.*;
import java.util.zip.*;
import java.util.regex.*;

Some may not be necessary for your exact project, but it may help get started.

...If you haven't already.   Huh
Re: Processing with NetBeans
Reply #2 - Jan 7th, 2010, 10:52am
 
The camera() and scale() methods listed in the API are methods of processing.core.PApplet, which is just the base class of the sketch.

Make sure your class is being passed a PApplet object to use. You can find a more in depth explanation of this in Daniel Shiffman's Eclipse tutorial under the heading "Processing in Eclipse with Multiple Classes". Don't be turned off by the title, that section is generally adaptable to programming with processing in java regardless of ide. It can be found on the processing.org site under learning-> tutorials
Page Index Toggle Pages: 1