Has anyone ever made this work? I have been trying to no avail!
Here is what I have so far...
Code:import java.awt.BorderLayout;
import java.awt.Container;
import javax.swing.JFrame;
public class test3 extends JFrame {
pillar p1;
public static void main(String[] args) {
new test3();
}
public test3() {
super("Using JFrame");
WindowUtilities.setNativeLookAndFeel();
addWindowListener(new ExitListener());
Container content = getContentPane();
p1 = new pillar();
content.add(p1, BorderLayout.SOUTH);
pack();
setVisible(true);
}
}
The pillar class that is called:
Code:import processing.core.PApplet;
public class pillar extends PApplet{
public pillar(){
//size(1280, 900);
}
}
This will render without errors but as soon as I open up size (1280, 900) I get this error:
Exception in thread "main" java.lang.NullPointerException at processing.core.PApplet.updateSize(PApplet.java:912)
at processing.core.PApplet.size(PApplet.java:862)
at processing.core.PApplet.size(PApplet.java:792)
at processing.core.PApplet.size(PApplet.java:774)
at pillar.<init>(pillar.java:5)
at test3.<init>(test3.java:26)
at test3.main(test3.java:12)
I have tried as many variations of this code as I can think of and nothing works - can someone show me how this should be done?
Thanks,
4dplane