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 › Netbeans and Processing
Pages: 1 2 
Netbeans and Processing (Read 23294 times)
Re: Netbeans and Processing
Reply #15 - Mar 21st, 2008, 5:14pm
 
Duh, never mind. I'm used to Eclipse, which lets you specify class and package names as its project wizard, so ... uh, anyway, long story short I refactored and made a mistake in the PApplet.main string.

Anyway, otherwise I have to admit I'm finding this largely like Eclipse. We almost need side-by-side tutorials for the two, as they are relatively similar. Well, except that NetBeans in fact feels a whole heck of a lot faster than Eclipse, and maybe I'll have more luck building. But, yes, choice is good ... and some other interesting projects are making use of NetBeans, like the SunSPOT hardware platform.

Time to work through my various OpenGL, video projects and such ... NetBeans does have this very nice templating system, so maybe some new templates are in order.
Re: Netbeans and Processing
Reply #16 - Sep 12th, 2008, 4:38pm
 
Also worth mentioning -- I was having GLUEGEN-RT build issues, and then tried this:

https://netbeans-opengl-pack.dev.java.net/

Install all the plug-in files, and not only do you get a terrific set of templates for doing OPENGL programming (which can be handy for developing shaders), *plus* a set of tutorial files in Java+OpenGL, but you also get the GLUEGEN library set up so it's easier to add to your projects.
Re: Netbeans and Processing
Reply #17 - Jun 7th, 2009, 6:29pm
 
Hi I installed Mobile Processing into c: , I started Netbeans, I added the jar library named core, but I still have errors in the IDE. Words in red that tell me that the libraries are not complete.

Can you help me?
Re: Netbeans and Processing
Reply #18 - Aug 7th, 2009, 12:45pm
 
Another note about adding Processing libraries to a Netbeans project:

With Netbeans 6.5.1, I was unable to navigate below the 'Processing.app' folder, and therefore couldn't add the Processing jars contained within.  If anyone knows how to get around my inability to nav within the Processing.app directory from within NB, please share!

Thanks -
Ben
Re: Netbeans and Processing
Reply #19 - Dec 3rd, 2009, 3:47pm
 
hello,

im currently working on a java based mp3 crawler project (developed in NetBeans) and would like to visualize my DB with processing.

Currently im using a Swing based GUI which represents the objects my crawler finds and stores into a db4o file. What i'd like to do is pretty simple but after numerous tries / failures i hope somebody here can figure out what i'm doing wrong Tongue By the way, when i create a new project and use only processing im able to launch my sketch file, the problem is when im trying from another java class to load processing sketches.

Following code is my try to connect a JButton (via ActionListener) with my Processing class and initialize my sketch.

The Code till now :

package gui / class start :
...
visualize.addActionListener(new ActionListener(){
            public void actionPerformed( ActionEvent e ) {
                   Embedded visualize = new Embedded();
               
           };
       });


package visualize / class Embedded

package visualize;
import java.awt.*;
import javax.swing.*;

public class Embedded extends javax.swing.JFrame{

    public Embedded() {
        super("p5test PApplet");
        System.out.println("initializing visualization..");
        setLayout(new BorderLayout());
        p5test embed = new p5test();
        add(embed, BorderLayout.CENTER);
        // important to call this whenever embedding a PApplet.
        // It ensures that the animation thread is started and
        // that other internal variables are properly set.
        embed.init();
    }
}


package visualize / class p5test:

package visualize;
import processing.core.PApplet;

public class p5test extends PApplet {

       public void setup() {
            // original setup code here ...
            size(400, 400);

           // prevent thread from starving everything else
            noLoop();
        }

       public void draw() {
           // drawing code goes here
       }

       public void mousePressed() {
            // do something based on mouse movement
           line(mouseX,mouseY,100,100);
           // update the screen (run draw once)
            redraw();
       }
   }



I have no idea why it doesnt work and would be glad if somebody could sacrifice some time helping me out Smiley

Cheers,
alex
Re: Netbeans and Processing
Reply #20 - Dec 28th, 2009, 5:31pm
 
ds wrote on Oct 22nd, 2007, 2:03am:
If your interested in using Open GL with NetBeans:

-  Right click on the 'Libraries' folder in the left hand column and "Add JAR/Folder", then in the dialog box locate the "opengl.jar" & "jogl.jar" files inside Applications/Processing XXX/libraries/opengl/library/
. . .


First, this is a terrific thread. I'm running Processing using NB 6.7.1 and haven't run into any showstoppers yet. Thanks!

Bex
Re: Netbeans and Processing
Reply #21 - Feb 9th, 2010, 2:07pm
 
alexloi wrote on Dec 3rd, 2009, 3:47pm:
im currently working on a java based mp3 crawler project (developed in NetBeans) and would like to visualize my DB with processing.

Currently im using a Swing based GUI which represents the objects my crawler finds and stores into a db4o file. What i'd like to do is pretty simple but after numerous tries / failures i hope somebody here can figure out what i'm doing wrong Tongue By the way, when i create a new project and use only processing im able to launch my sketch file, the problem is when im trying from another java class to load processing sketches.

hi, do you was able to solve that?I'm also interested in nesting sketches in swing ui..espacialy in a RCP Smiley
Re: Netbeans and Processing
Reply #22 - Feb 10th, 2010, 1:55pm
 
When I've tried using processing with Netbeans, the program freezes.  I'm not sure if it's a bug in the program or perhaps I have a virus issue?  Have you experienced this?
Re: Netbeans and Processing
Reply #23 - Feb 11th, 2010, 12:32pm
 
joe2010 wrote on Feb 10th, 2010, 1:55pm:
When I've tried using processing with Netbeans, the program freezes.  I'm not sure if it's a bug in the program or perhaps I have a virus issue  Have you experienced this

for me it works just fine.
Maybe you should turn up the heating! i mean there a million ways to screw something up..with that description i think only santa can help you..
Re: Netbeans and Processing
Reply #24 - Feb 11th, 2010, 12:47pm
 
@alexlo: I think I know why that can't work.It's because an applet is a form and not a component. You can't have an applet in an frame but a frame in an applet,because a frame is a component of a form. But it would be cool if somebody can prove me wrong
Re: Netbeans and Processing
Reply #25 - Mar 26th, 2010, 11:30am
 
gluegen-rt / opengl / mac

this might help someone working with opengl on a mac. one needs to add gluegen-rt to the libraries to get opengl to work. at least I had to anyway.

as in add:

/Applications/Processing.app/Contents/Resources/Java/libraries/opengl/library/gl
uegen-rt.jar

to the project libraries included jar files.

I have to edit my nbproject/project.properties file by hand since netbeans can't seem to look inside *.app folders when I try to add through the interface. this may be a system setting though.

Pages: 1 2